1. 程式人生 > >更改jupyter-notebook預設workspace目錄

更改jupyter-notebook預設workspace目錄

1.開啟 cmd ,輸入命令 jupyter notebook --generate-config,將生成 jupyter_notebook_config.py檔案
2.在C:\Users\Administrator\.jupyter 中的檔案找到檔案 jupyter_notebook_config.py

3.用記事本開啟找到 # The directory to use for notebooks and kernels.
修改這一句c.NotebookApp.notebook_dir = u' 

c.NotebookApp.notebook_dir = u'D:/01MachineLearning/TensorFlow/tfWorkspace'

注:將#號刪除,WIN複製路徑符號"\ "改為符號“/”