Issue
According to this: https://ipywidgets.readthedocs.io/en/stable/user_install.html , in order to use ipywidgets on a legacy Jupyter Notebook, one has to install the appropriate Jupyter Notebook extension like this:
pip install ipywidgets
jupyter nbextension enable --py widgetsnbextension
Moreover, in order to use ipywidgets from a Notebook that runs through JupyterLab, one was to install the JupyterLab extension of ipywidgets using:
jupyter labextension install @jupyter-widgets/jupyterlab-manager
Why is that the case? I was under the impression that the Notebook of JupyterLab is just a legacy Jupyter Notebook that is packed as an extension of JupyterLab. I tried to read through the code of the ipywidgets JupyterLab extension but I am not sure what is going on.
I would appreciate if someone could list the most important reasons as to why installing just the Jupyter Notebook extension of ipywidgets is not enough when running Notebooks through JupyterLab.
Thanks in advance.
Solution
So I guess the point of running either the nbextension or the labextension script is to add some new CSS and Javascript libraries; presumably the paths etc are different for jupyterlab vs vanilla jupyter; I don't think there's any reason to expect that nbextensions will be shared with jupyter lab.
Answered By - maxymoo
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.