首页 > 解决方案 > Jupyter 可配置的 nbextensions 列表为空

问题描述

我安装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

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

标签: jupyter-notebookjupyter-contrib-nbextensions

解决方案


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

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

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

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

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


推荐阅读