jupyter notebook的自用配置

安装

安装anaconda

运行

设置环境变量后,命令行运行
jupyter notebook

配置

安装jupyter的插件库
conda install -c conda-forge jupyter_contrib_nbextensions

设置jupyter的运行终端

先在命令行查看conda环境
conda info --envs

然后**环境
source activate {envs}

在环境中运行jupyter
jupyter notebook

所用python终端就是该环境下的终端了。

选择喜欢的插件

jupyter notebook的自用配置
比较重要的是
Hinterland,代码自动补全
Autopep8,代码一键美化

jupyter主题设置

pip install jupyterthemes

jt -l查看可用主题列表
jt -t <theme name>选择安装的主题
jt -r跳转回原来的主题

最重要的详细内容请参考

如何优雅地使用 Jupyter? - 量子位的回答 - 知乎