Jupyter Xblock / LTI - Option to open in new window or inline?

Hi,

I am using a derivative of the Jupyter XBlock (GitHub - overhangio/jupyter-xblock: Integrate JupyterHub notebooks with Open edX) but I suspect this question may be more general to any LTI tool.

Is there a way to give the learner the option to either open the external tool inline or to open it in a new window ? It seems that when adding this xblock, one must choose either or, both can’t be presented.

I would be happy to do a small PR to add this option if I get some guidance.

Thanks,

Maxime Boissonneault

I found the way to add the feature:

Would the developers of the lti-consumer xblock be interested a PR for this ?