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'

2-1

自动补全

1.安装nbextensions库:

pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user

2.在notebook中配置
3-1

更多奇技淫巧

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章