Interactive Jupyter Widgets not working in Jupyter Lab

后端 未结 2 1722
忘掉有多难
忘掉有多难 2021-01-12 08:14

I noticed that interactive widgets are not working in my Jupyter Lab notebooks.

The following code should produce an interactive slider but doesn\'t:



        
2条回答
  •  轮回少年
    2021-01-12 09:14

    Per the docs:

    To install the JupyterLab extension you also need to run the command below in a terminal which requires that you have nodejs installed.

    jupyter labextension install @jupyter-widgets/jupyterlab-manager
    

    I think it's the latter nodejs requirement that you are missing e.g. with Conda, first run:

    conda install nodejs
    

提交回复
热议问题