【问题标题】:Jupyter Configurable nbextensions list is emptyJupyter 可配置的 nbextensions 列表为空
【发布时间】:2020-10-26 23:44:26
【问题描述】:

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

系统详情:

Windows 10、火狐
康达 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 py38h32f6830_1 conda-forge
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-notebook jupyter-contrib-nbextensions


    【解决方案1】:

    我在 Github 上的一个未解决问题中找到了答案 here

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

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

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

    然后启动 notebook 并且扩展可用:

    【讨论】:

    • 在尝试了一个小时后救了我!
    • Python 3.9 更新:我还必须在一些文件中将 template_path 替换为 template_paths,如 Gihub 上的未决问题 (Link) 中所述。然后我还必须在 Anaconda 提示符下运行 jupyter contrib nbextension install --user
    【解决方案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
    

    【讨论】:

      【解决方案3】:

      如果有人仍在苦苦挣扎 - 像我一样 - 使用它,对我来说效果很好: 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

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 2018-06-29
        • 1970-01-01
        • 2020-01-28
        • 2022-07-05
        • 2016-08-30
        • 2017-05-28
        • 1970-01-01
        相关资源
        最近更新 更多