一、jupyter_notebook修改存储路径
- 1、查看jupyter的路径
import os
print(os.path.abspath('.'))
- 进入Anaconda Propmt ,进入jupyter的路径,然后输入这个命令行
jupyter notebook --generate-config
可以看到输出了
"Writing default config to : C:\Users\ass.jupyter\jupyter_notebook_config.py "
- 复制上面那个路径,并打开 jupyter_notebook_config.py 这个文件
找到 # c.NotebookApp. notebook_dir = '' ;取消注释,输入路径:c.NotebookApp. notebook_dir = 'C:\Users'。修改后,保存。
- 复制上面那个路径,并打开 jupyter_notebook_config.py 这个文件
-
点击jupyter notebook,进入“属性”,删掉目标中的 "%USERRPROFILE%/"
应用保存
-
- 在jupyter中新建文件试一试存储路径是否修改成功
网友评论