【记录安装 Jupyter Notebook 插件 Nbextensions 踩坑】

最近安装 Jupyter Notebook 的时候想着安装一个代码补全的插件,于是搜了搜决定安装插件 nbextensions ,但是过程中遇到有一些问题,在执行以下指令的时候

# 安装插件
pip install jupyter_contrib_nbextensions
# 安装js和css
jupyter contrib nbextension install --user
# 安装configurator
pip install jupyter_nbextensions_configurator

出现了 ‘Module Not Found’ 的错误,如下图

【记录安装 Jupyter Notebook 插件 Nbextensions 踩坑】_第1张图片所以搜索了解决办法,发现是 notebook 7.x 版本再也不支持该插件(版本不兼容的问题),所以需要指定版本重装 Jupyter Notebook,指令非常简单

# 卸载现有的 jupyter notebook
conda remove jupyter notebook
# 重新安装
conda install notebook=6.4.12

如果之前安装过 nbextensions 的话,需要卸载干净相关的东西,(我不确定卸没卸载)

pip install jupyter_contrib_nbextensions

pip uninstall jupyter-nbextensions-configurator

pip uninstall jupyter-contrib-core

你可能感兴趣的:(jupyter,ide,python)