jupyter notebook插件环境配置

问题

jupyter 更新后无法使用插件,现给出一个能够使用插件的安装步骤

安装步骤

  1. 安装jupyter notebook
pip install notebook==6.4.12
  1. 安装并激活 jupyter_contrib_nbextensions
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
  1. 安装并启用 Jupyter Nbextensions Configurator
pip install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user
  1. 使用jupyter notebook
jupyter notebook

报错解决

  1. 若遇到ModuleNotFoundError: No module named 'jupyter_server' 报错,执行以下命令
pip uninstall traitlets
pip install traitlets==5.9.0
  1. 若遇到ModuleNotFoundError: No module named 'jupyter_nbextensions_configurator' 报错,执行以下命令
conda install -c conda-forge jupyter_nbextensions_configurator

参考文献

  1. ModuleNotFoundError: No module named 'notebook.base' when installing nbextensions
  2. jupyter 报错 500 : internal server error的不同解决方法
  3. 打造实用的Jupyter Notebook 扩展插件
  4. ModuleNotFoundError: No module named 'jupyter_server.contents'
  5. Error loading Jupyter Notebook Extensions
posted @ 2024-03-15 17:04  littletreee  阅读(31)  评论(0编辑  收藏  举报