jupyter notebook插件环境配置
问题
jupyter 更新后无法使用插件,现给出一个能够使用插件的安装步骤
安装步骤
- 安装jupyter notebook
pip install notebook==6.4.12
- 安装并激活 jupyter_contrib_nbextensions
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
- 安装并启用 Jupyter Nbextensions Configurator
pip install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user
- 使用jupyter notebook
jupyter notebook
报错解决
- 若遇到ModuleNotFoundError: No module named 'jupyter_server' 报错,执行以下命令
pip uninstall traitlets
pip install traitlets==5.9.0
- 若遇到ModuleNotFoundError: No module named 'jupyter_nbextensions_configurator' 报错,执行以下命令
conda install -c conda-forge jupyter_nbextensions_configurator