4

我安装conda install -c conda-forge jupyter_nbextensions_configuratorjupyter nbextensions_configurator enable --user在我的 venv 中运行,但 nbextensions 菜单是空的。我已经重新启动了几次笔记本,没有运气。我怎样才能让菜单显示出来,以便我可以单击并选择 TOC 等?

系统详情:

Windows 10、Firefox
conda 4.8.2
Python 3.8.3
jupyter 1.0.0 pypi_0 pypi
jupyter_client 6.1.3 py_0 conda-
forge jupyter_console 6.1.0 py_1 conda-
forge jupyter_contrib_core 0.3.3 py_2 conda-
forge jupyter_core 4.6.3 py38h32f683
jupyter_nbextensions_configurator 0.4.1 py38_0 conda-forge

(myenv) C:\path>jupyter nbextension list
Known nbextensions:
  config dir: C:\path\.jupyter\nbconfig
    notebook section
      nbextensions_configurator/config_menu/main enabled
      - Validating: problems found:
        - require?  X nbextensions_configurator/config_menu/main
      jupyter-js-widgets/extension disabled
      jupyter-vega/index disabled
    tree section
      nbextensions_configurator/tree_tab/main enabled
      - Validating: problems found:
        - require?  X nbextensions_configurator/tree_tab/main
  config dir: C:\path\anaconda3\envs\myenv\etc\jupyter\nbconfig
    notebook section
      jupyter-js-widgets/extension enabled
      - Validating: ok
      jupyter-vega/index enabled
      - Validating: problems found:
        - require?  X jupyter-vega/index
      nbextensions_configurator/config_menu/main enabled
      - Validating: problems found:
        - require?  X nbextensions_configurator/config_menu/main
    tree section
      nbextensions_configurator/tree_tab/main enabled
      - Validating: problems found:
        - require?  X nbextensions_configurator/tree_tab/main

在此处输入图像描述 在此处输入图像描述

4

3 回答 3

7

我在这里找到了答案,在 Github 上的一个公开问题中

我在 Anaconda 提示符下运行了以下命令:

conda install -c conda-forge jupyter_contrib_nbextensions
jupyter nbextensions_configurator enable --user

(注意conda install -c conda-forge jupyter_nbextensions_configurator已经在提示符中运行过)

然后启动笔记本,扩展可用: 在此处输入图像描述

于 2020-07-08T16:30:56.377 回答
2

如果有人仍在苦苦挣扎 - 像我一样 - 使用它,对我来说效果很好: https ://github.com/ipython-contrib/jupyter_contrib_nbextensions/issues/1196#issuecomment-903668248


在 anaconda 导航器中 - 转到环境(在 HOME 下方) - 选择基地 - 打开终端

然后粘贴此代码

conda install -c conda-forge jupyter_contrib_nbextensions

然后

jupyter contrib nbextension install --user

之后

conda install -c conda-forge/label/cf202003 jupyter_contrib_nbextensions

然后刷新应用程序->检查 nbextensions

于 2021-08-26T08:18:59.693 回答
-2

试试这个:

conda install -c conda-forge jupyter_contrib_nbextensions
jupyter nbextensions_configurator enable --user

在此之后,您需要安装 conda-forge/label/cf202003,如下所示:

conda install -c conda-forge/label/cf202003 jupyter_contrib_nbextensions
于 2021-07-05T12:37:12.970 回答