切换到需要安装的环境
执行
pip install jupyter_contrib_nbextensions
接着执行
jupyter contrib nbextension install --user
但是报错如下:
Jupyter command `jupyter-contrib` not found
解决办法:
先卸载一遍
pip uninstall jupyter_contrib_nbextensions
pip uninstall jupyter_nbextensions_configurator
重新执行安装命令
pip install jupyter_contrib_nbextensions
安装的时候看到警告:
根据提示的位置,使用cd切换进去
看到其他人帖子,执行以下命令:
jupyter contrib-nbextension install --user
还是报错,不行
改为如下命令:
python jupyter-contrib-nbextension install --user
安装成功
启动jupyter
在disable前面把对勾取消,不然下面的没办法点击
取消勾选后,选中Hinterland,下面的内容不用管
打开代码文件,就可以看到有自动补全功能了