jupyter notebook环境配置笔记nb

写在前面

被环境配置折磨的死去活来的,每次重新配都要查别人的,索性自己把最有效的记录下来。我配置jupyter主要有两个需求:

  • nb_conda:使用anaconda的环境
  • nb_extenstions:实现其他拓展

anaconda

anaconda repo

nb_conda

Jupyter Notebook切换conda虚拟环境

通过下面命令安装插件:

conda install nb_conda

重启

nb_extenstions

参考链接

步骤

1 安装 jupyter_contrib_nbextensions

pip install jupyter_contrib_nbextensions

2 激活 nbextensions

jupyter contrib nbextension install --user

3 安装并启用 Jupyter Nbextensions Configurator

pip install jupyter_nbextensions_configurator
jupyter nbextensions_configurator enable --user

之后便可在 url/nbextensions 的位置打开 configurator 进行设置了,例如启动 Jupyter Notebook 之后的网址为 http://localhost:8888/tree,那么 Jupyter Nbextensions Configurator 的设置地址则为 http://localhost:8888/nbextensions.

异常解决

无法连接本地环境(即不能运行代码)


版权声明:本文为qq_37177765原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。