Jupyter notebook的常用配置

添加多个虚拟环境

1.如果是anaconda的多个环境,先在base环境安装:

conda install nb_conda_kernels

2.切换到其他环境安装ipykernel

conda install ipykernel

修改默认路径

1.在命令行中输入如下命令找到配置文件jupyter_notebook_config.py的位置:

jupyter notebook --generate-config

2.编辑jupyter_notebook_config.py

记事本打开,查找c.NotebookApp.notebook_dir,并修改为你的目录:

#c.NotebookApp.notebook_dir = ''
c.NotebookApp.notebook_dir = 'E:\Your_Jupyter_DIR'

Jupyter notebook的常用配置_第1张图片

自动补全

1.安装nbextensions库:

pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user

2.在notebook中配置
Jupyter notebook的常用配置_第2张图片

更多奇技淫巧

参考这里:Jupyter Notebook 有哪些奇技淫巧?

你可能感兴趣的:(开发环境工具)