添加多個虛擬環境
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'
自動補全
1.安裝nbextensions庫:
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
2.在notebook中配置