Can cloud instances of Jupyter Lab support pop out interactive windows

Viewed 273

I'm new to Jupyter notebooks/Lab and I've successfully got interaction with pop-out windows and buttons etc with ipywidgets on local instances of Jupyter Lab but not in the cloud when using notebooks.ai - the code runs without error but doesn't create the appropriate windows/button.

Is there anyway to get this working or is this an inherent restriction of using Jupyter Lab in the cloud?

I'm wondering whether there are firewall settings that need configuring to get this to work?

1 Answers

The X11 forwarding is disabled on the docker machines provided by notebooks.ai. Hence, any pop-up interaction is not being forwarded to your machine. However, you can see any inline plot/button in the Jupyter notebook.

If you are interested in this feature there is a GitHub repository to request features (I have never tried it) but might be interesting for you to receive a more in-depth explanation, workaround, or solution.

PROVE:

In the launcher tab you can either run a notebook, a python interpreter or a terminal on the remote docker machine. If you select the terminal and type echo $DISPLAY, you will see that the result is an empty line (if a valid display was attached you will see something like: DISPLAY=localhost:11.0).

notebooks ai terminal

For further information about using BASH to check if X11 forwarding is enabled from SSH check this question.

Related