1. 程式人生 > >修改jupyter notebook默認工作路徑

修改jupyter notebook默認工作路徑

con book not info 修改 打開 接下來 界面 rate

jupyter notebook的默認工作路徑一般是我的文檔,可以通過下列操作修改成任意你想設置的路徑。

同時按Win + R然後輸入cmd進入命令行界面

技術分享圖片

然後輸入

jupyter notebook --generate-- config

技術分享圖片技術分享圖片

之後會在C:\Users\ruansh\.jupyter目錄下生成一個jupyter_notebook_config.py文件

技術分享圖片

進入找到

#c.NotebookApp.notebook_dir = ‘‘

在引號中輸入你想設置的默認工作路徑,刪去開始的#號並保存,接下來打開jupyter notebook試試看。

技術分享圖片技術分享圖片

修改jupyter notebook默認工作路徑