根据这个:install.html,为了在遗留的木星笔记本上使用ipywidget,必须安装适当的木星笔记本扩展,如下所示:
pip install ipywidgets
jupyter nbextension enable --py widgetsnbextension此外,为了使用通过JupyterLab运行的笔记本中的ipywidget,一种方法是使用以下方法安装ipywidget的JupyterLab扩展:
jupyter labextension install @jupyter-widgets/jupyterlab-manager为什么是这种情况?我当时的印象是,JupyterLab的笔记本只是一本遗留的朱庇特笔记本,它是JupyterLab的扩展。我试着阅读ipywidgets扩展的代码,但我不确定发生了什么。
如果有人能列举一些最重要的原因,说明为什么在通过JupyterLab运行笔记本时仅仅安装ipywidget的朱庇特笔记本扩展是不够的,我会很感激。
提前谢谢。
发布于 2018-01-23 05:38:44
因此,我想,运行nb扩展名或labextension的目的是添加一些新的CSS和Javascript库;可能jupyterlab和vanilla jupyter的路径等是不同的;我不认为有任何理由期望将‘s扩展与jupyter实验室共享。
https://stackoverflow.com/questions/48394690
复制相似问题