The answer is in this GitHub issue.
The key is to ensure that you have the ipywidgets
notebook extension enabled using the following command:
jupyter nbextension enable --py widgetsnbextension
For the old JupyterLab 2.0 you’ll also need to install the JupyterLab extension:
jupyter labextension install @jupyter-widgets/jupyterlab-manager
For the old JupyterLab 2.0 installing the JupyterLab extension with the command above requires that you have Node.js installed. The installer from the Node.js website includes npm
, which is also required for the command to run properly.
When using JupyterLab 3.0, the extension will be auto-installed together with ipywidgets
when you install it with pip
or conda
. Node.js is no longer required for JupyterLab 3.0.