jupyter Notebook 默认路径修改

1. anaconda prompt 中运行 jupyter notebook --generate-config 命令,将在 C:\Users\Thin'k\.jupyter文件下生成 jupyter_notebook_config.py 文件。

2.在jupyter_notebook_config.py 文件中,找c.NotebookApp.notebook_dir 这个变量,

(1)若该变量存在,则为该变量赋预设路径(删除变量前的#),如:c.NotebookApp.notebook_dir  = 'E:\jupyter_Notebook'

(2)若该变量不存在,Ctrl + F,输入“c.ServerApp.root_dir =”,找到下图所示文字:

在“c.ServerApp.root_dir =”,下面加一行c.NotebookApp.notebook_dir = 'E:\jupyter_Notebook'

'E:\jupyter_Notebook'为目标路径

然后,在开始菜单中,点击Anaconda Navigator ,选择jupyter notebook,点击Launch,new下拉菜单下,新建Notebook,并进行重命名,即可改变jupyter notebook的工作路径。

相关推荐

  1. ubuntu18.04安装docker 并修改默认路径

    2024-03-31 11:50:03       17 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-03-31 11:50:03       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-03-31 11:50:03       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-03-31 11:50:03       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-03-31 11:50:03       20 阅读

热门阅读

  1. K8S 运维管理

    2024-03-31 11:50:03       16 阅读
  2. 基于UDP的可靠传输协议QUIC协议

    2024-03-31 11:50:03       14 阅读
  3. AtCoder_ABC130_Rectangle Cutting

    2024-03-31 11:50:03       13 阅读
  4. 什么是计算机视觉?计算机视觉:从基础到前沿

    2024-03-31 11:50:03       14 阅读
  5. 算法与数据结构 顺序表

    2024-03-31 11:50:03       17 阅读
  6. sql注入相关题目

    2024-03-31 11:50:03       11 阅读
  7. node.js 常用命令

    2024-03-31 11:50:03       12 阅读
  8. C# comboBox

    2024-03-31 11:50:03       13 阅读
  9. MyBatis——动态SQL

    2024-03-31 11:50:03       11 阅读
  10. 在Python中,当你执行 print(2, 3) 时

    2024-03-31 11:50:03       14 阅读