执行以下命令
pip install jupyter_contrib_nbextensions
无报错并提示
Installing collected packages: jupyter-nbextensions-configurator, jupyter-contrib-nbextensions
Successfully installed jupyter-contrib-nbextensions-0.5.0 jupyter-nbextensions-configurator-0.4.0
执行
jupyter contrib nbextension install --user
无报错
Enabling: jupyter_nbextensions_configurator
- Writing config: C:\Users\Hatsune Miku\.jupyter
- Validating...
jupyter_nbextensions_configurator 0.4.0 ok
Enabling notebook nbextension nbextensions_configurator/config_menu/main...
Enabling tree nbextension nbextensions_configurator/tree_tab/main...
[I 14:26:29 InstallContribNbextensionsApp] Enabling notebook extension contrib_nbextensions_help_item/main...
[I 14:26:29 InstallContribNbextensionsApp] - Validating: ok
[I 14:26:29 InstallContribNbextensionsApp] - Editing config: C:\Users\Hatsune Miku\.jupyter\jupyter_nbconvert_config.json
[I 14:26:29 InstallContribNbextensionsApp] -- Configuring nbconvert template path
[I 14:26:29 InstallContribNbextensionsApp] -- Configuring nbconvert preprocessors
[I 14:26:29 InstallContribNbextensionsApp] - Writing config: C:\Users\Hatsune Miku\.jupyter\jupyter_nbconvert_config.json
[I 14:26:29 InstallContribNbextensionsApp] -- Writing updated config file C:\Users\Hatsune Miku\.jupyter\jupyter_nbconvert_config.json
启动jupyter
jupyter notebook
[W 14:26:48.022 NotebookApp] Terminals not available (error was No module named 'winpty.cywinpty')
[I 14:26:48.053 NotebookApp] [jupyter_nbextensions_configurator] enabled 0.4.0
[I 14:26:48.053 NotebookApp] Serving notebooks from local directory: G:\Python\jupyter-workspace
[I 14:26:48.053 NotebookApp] The Jupyter Notebook is running at:
[I 14:26:48.053 NotebookApp] http://localhost:8888/?token=7ca3b607fd4757bf076262a5ce84ba22f5634803a7f615db
[I 14:26:48.053 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 14:26:48.100 NotebookApp]
Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
http://localhost:8888/?token=7ca3b607fd4757bf076262a5ce84ba22f5634803a7f615db
[I 14:26:48.537 NotebookApp] Accepting one-time-token-authenticated connection from ::1
没有nbextensions标签
请问要怎么解决这个问题,已经重新安装jupyter_contrib_nbextensions很多次了
你pip list 一下,看看这个包装了吗,要是安装了的话,你直接打开http://localhost:8888/nbextensions?nbextension=toc2/main这个网页,配置一下就可以了,正常情况下这个插件按钮是正常自己出现的,我目前还没找到配置按钮的方法,但是你登录这个网页配置的话,是可以使用插件的功能的
提供一个 conda 环境下的解决方案:
同样的问题,我换了一个命令:
conda install -c conda-forge jupyter_contrib_nbextensions
然后 conda 就将我的几个包退回了旧一点的版本,然后就OK了,估计是依赖的问题
题主可以参考一下
你应该是在搭配的虚拟环境中安装的这个插件,你到cmd中输入activate base ,然后再输入pip install jupyter_contrib_nbextensions。
再输入jupyter contrib nbextension install --user。再重启jupyter notebook应该就可以了。
我也是这样的情况,我的jupyter是在服务器上运行的,然后在服务器上安装好要安装的包,但是在本地nbextensions标签不显示
或许可以试试运行 jupyter nbextension enable varInspector/main
不行直接登陆试试 http://localhost:8888/nbextensions\
我也出现这样的问题,不过我的是ubuntu16.04,最后在su权限下全部重新安装问题就解决了,不过只能在su下运行,普通用户还是没有扩展包的标签。你可以试试管理员运行。
我也出现了同样问题,仅在管理员模式下才能出现上述标签
重新安装了anaconda,在just me 和all users哪个选项修改为just me后(原来选的all users),问题解决。
只要安装好相应的包,照楼上输入网址,就可以找到,亲测可用,,注意要先启动jupyter notebook