mac OS平台下修改Jupyter默认目录
在终端运行命令:jupyter notebook --generate -config
,
得到/Users/XXXX/.jupyter/jupyter_notebook_config.py
路径("XXXX"为具体用户名)
其中jupyter_notebook_config.py
文件,即当前用户的 jupyter配置文件
在finder
中选择前往

接着选择前往文件夹,将刚才得到的jupyter_notebook_config.py
文件路径输入/Users/XXXX/.jupyter/
,即

找到文件jupyter_notebook_config.py
,打开
找到如下代码:
## 用于笔记本和内核的目录。
#c.NotebookApp.notebook_dir = ‘'
修改为&#x