jupyter notebook的路径怎么更改
时间: 2023-11-12 22:05:30 浏览: 122
要更改jupyter notebook的路径,可以按照以下步骤进行操作:
1. 打开jupyter notebook,在主界面中点击右上角的“New”按钮,选择“Terminal”打开终端。
2. 在终端中输入以下命令:jupyter notebook --generate-config,然后按回车键执行该命令。
3. 在终端中输入以下命令:jupyter notebook --config-dir,然后按回车键执行该命令,会显示jupyter notebook的配置文件夹路径。
4. 在文件浏览器中打开该路径,找到jupyter_notebook_config.py文件,使用记事本或其他文本编辑器打开该文件。
5. 找到并修改以下两行代码:
#c.NotebookApp.notebook_dir = ''
#c.NotebookApp.notebook_dir = u'C:/Users/WW/Documents/Jupyter'
将第一行的注释去掉,并将第二行的路径修改为你想要保存jupyter notebook文件的路径。
6. 保存修改后的文件,并关闭文本编辑器。
7. 在终端中输入以下命令:jupyter notebook,然后按回车键执行该命令,重新启动jupyter notebook。
相关问题
更改jupyter notebook路径
要更改 Jupyter notebook 的路径,可以在命令行中使用 `jupyter notebook --notebook-dir=<your/new/path>` 命令。替换 `<your/new/path>` 为你想要的新路径。也可以在 Jupyter notebook 的配置文件中更改 notebook_dir 选项的值。
修改jupyter notebook路径
可以通过在命令行中使用 "jupyter notebook --notebook-dir=new_directory" 来更改 Jupyter Notebook 的默认路径。其中 "new_directory" 是新的文件夹路径。
阅读全文
相关推荐















