1.1首先安装 nbextensions
pip install jupyter_contrib_nbextensions
1.2 接着对其进行设置
jupyter contrib nbextension install --user
2. 然后安装 nbextensions_configurator,同样对其进行设置
pip install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user
3. 如果执行1.1遇到报错:Error executing Jupyter command 'contrib': [Errno 'jupyter-contrib' not found] 2
在C盘搜索jupyter-contrib-nbextension.exe,将cmd路径切换到该文件所在的路径,再执行1.1的代码就可以了。