How to get ipywidgets working in Jupyter Lab?

后端 未结 8 1118
北海茫月
北海茫月 2020-12-07 17:39

In Jupyter Notebook, ipywidgets work fine, however they seem to not work in Jupyter Lab (which is supposedly better than Notebook).

I followed these directions.

8条回答
  •  青春惊慌失措
    2020-12-07 17:58

    Had the same issue, and what worked for me today was running the 'clean' command, as mentioned here: https://ipywidgets.readthedocs.io/en/latest/user_install.html#installing-the-jupyterlab-extension

    So:

    jupyter lab clean
    jupyter labextension install @jupyter-widgets/jupyterlab-manager
    

    And that got it working right for me just now.

提交回复
热议问题