首先,安装 jupyter notebook 插件前,需先完成一下两步:
- 安装并激活 jupyter_contrib_nbextensions,
为了快速安装的速度,先临时使用清华的镜像,这样并不会改变默认的pip参数。
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple flask
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
2. 安装并启用 Jupyter Nbextensions Configurator
pip install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user
除了实用 pip 安装以外,还可以使用conda进行完成以上两步,命令如下:
conda install -c conda-forge jupyter_contrib_nbextensionsconda install -c
conda-forge jupyter_nbextensions_configurator
安装完成以后,打开 jupyter noteb