英文:
Adding jupyter_nbextensions_configurator to Jupyter Notebook
问题
最终,我想要一个具有拼写检查功能的笔记本扩展。按照此教程,我尝试安装jupyter_nbextensions_configurator
。
然而,似乎未启用,因为我从未看到所承诺的"Nbextensions"选项卡。
我采取的步骤:
安装pip包
pip install jupyter_nbextensions_configurator
使用以下命令启用服务器扩展:
➜ jupyter nbextensions_configurator enable --user # 可以跳过笔记本>=5.3
启用:jupyter_nbextensions_configurator
- 写入配置:/home/hofbr/.jupyter
- 验证...
jupyter_nbextensions_configurator 0.6.1 正常
启用笔记本nbextension nbextensions_configurator/config_menu/main...
启用树nbextension nbextensions_configurator/tree_tab/main...
刷新了我的.zshrc
然而,当我打开一个全新的笔记本(在关闭所有其他jupyter环境后)时,我仍然从未看到这个传说中的"Nbextensions"选项卡。
英文:
Ultimately, I want a Notebook extension that has spell check. Following this tutorial I tried to install the jupyter_nbextensions_configurator
However, it doesn't seem to have been enabled as I never see the "Nbextensions" tab as promised.
Steps I took:
Installed pip package
pip install jupyter_nbextensions_configurator
Enabled the server extension with the command:
➜ jupyter nbextensions_configurator enable --user # can be skipped for notebook >=5.3
Enabling: jupyter_nbextensions_configurator
- Writing config: /home/hofbr/.jupyter
- Validating...
jupyter_nbextensions_configurator 0.6.1 OK
Enabling notebook nbextension nbextensions_configurator/config_menu/main...
Enabling tree nbextension nbextensions_configurator/tree_tab/main...
Refreshed my .zshrc
Yet, when opening up a fresh notebook (after shutting down all other jupyter environments) I still never see this fabled Nbextensions
tab.
答案1
得分: 3
您可以将 Jupyter Notebook 降级到较早的版本,可以按照以下步骤操作:
pip uninstall jupyter notebook
pip install jupyter notebook==6.4.3(这将安装 Jupyter Notebook 版本6.4.3)。
# 安装完成后,您可以使用以下命令检查 Jupyter Notebook 的版本
jupyter notebook --version
注意:降级可能导致某些功能不可用或可能存在兼容性问题,因此请谨慎操作,并在降级之前备份您的文件和数据。
看起来 nbextensions
不兼容 notebook-6.5.3。
pip uninstall jupyter notebook
Found existing installation: jupyter 1.0.0
Uninstalling jupyter-1.0.0:
Would remove:
/opt/miniconda3/lib/python3.10/site-packages/jupyter-1.0.0.dist-info/*
/opt/miniconda3/lib/python3.10/site-packages/jupyter.py
Proceed (Y/n)? y
Successfully uninstalled jupyter-1.0.0
Found existing installation: notebook 6.5.3
Uninstalling notebook-6.5.3:
Would remove:
/opt/miniconda3/bin/jupyter-bundlerextension
/opt/miniconda3/bin/jupyter-nbextension
/opt/miniconda3/bin/jupyter-notebook
/opt/miniconda3/bin/jupyter-serverextension
/opt/miniconda3/lib/python3.10/site-packages/notebook-6.5.3.dist-info/*
/opt/miniconda3/lib/python3.10/site-packages/notebook/*
/opt/miniconda3/share/applications/jupyter-notebook.desktop
/opt/miniconda3/share/icons/hicolor/scalable/apps/notebook.svg
Proceed (Y/n)? y
Successfully uninstalled notebook-6.5.3
安装 jupyter_contrib_nbextensions
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
jupyter nbextensions_configurator enable --user
英文:
You can downgrade Jupyter Notebook to an earlier version, you can follow these steps:
pip uninstall jupyter notebook
pip install jupyter notebook==6.4.3 (this will install Jupyter Notebook version 6.4.3).
# After the installation is complete, you can use the following command to check the version of Jupyter Notebook
jupyter notebook --version
Note: Downgrading may cause certain features to be unavailable or there may be compatibility issues, so proceed with caution and backup your files and data before downgrading.
Looks like nbextensions
is not Compatible with notebook-6.5.3.
pip uninstall jupyter notebook ✔ 108 14:06:04
Found existing installation: jupyter 1.0.0
Uninstalling jupyter-1.0.0:
Would remove:
/opt/miniconda3/lib/python3.10/site-packages/jupyter-1.0.0.dist-info/*
/opt/miniconda3/lib/python3.10/site-packages/jupyter.py
Proceed (Y/n)? y
Successfully uninstalled jupyter-1.0.0
Found existing installation: notebook 6.5.3
Uninstalling notebook-6.5.3:
Would remove:
/opt/miniconda3/bin/jupyter-bundlerextension
/opt/miniconda3/bin/jupyter-nbextension
/opt/miniconda3/bin/jupyter-notebook
/opt/miniconda3/bin/jupyter-serverextension
/opt/miniconda3/lib/python3.10/site-packages/notebook-6.5.3.dist-info/*
/opt/miniconda3/lib/python3.10/site-packages/notebook/*
/opt/miniconda3/share/applications/jupyter-notebook.desktop
/opt/miniconda3/share/icons/hicolor/scalable/apps/notebook.svg
Proceed (Y/n)? y
Successfully uninstalled notebook-6.5.3
install jupyter_contrib_nbextensions
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
jupyter nbextensions_configurator enable --user
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论