如何修改Jupyter notebook的工作路径

时间:2024-03-22 19:57:57

如何修改Jupyter notebook的工作路径

命令使用

1、打开window+R,打开CMD
2、输入jupyter notebook -generate-config 回车
3、如果显示命令不是内部命令按如下环境配置
4、环境配置完成后重新打开cmd
5、输入jupyter notebook -generate-config 回车
如何修改Jupyter notebook的工作路径
6、可以看到文件路径为C:\Users\XXX.jupyter
7、有记事本打开修改jupyter_notebook_config.py文件
如何修改Jupyter notebook的工作路径
8、修改文件,添加自己的路径,保存。
如何修改Jupyter notebook的工作路径
9、关闭CMD,重新打开,输入jupyter notebook命令

如何修改Jupyter notebook的工作路径

Anacanda 环境变量配置

1、打开安装Anacanda路径

2、我的电脑属性中打开环境变量配置

如何修改Jupyter notebook的工作路径
3、输入以下1234路径
如何修改Jupyter notebook的工作路径