1、进入配置目录
cd ~/.jupyter
2、找到并修改 jupyter_notebook_config.py (如果没有此文件,执行: jupyter notebook --generate-config 生成此文件)
vi jupyter_notebook_config.py
3、修改 c.NotebookApp.notebook_dir (记得去掉最前面的‘#’)
c.NotebookApp.notebook_dir = '/Users/yanglei/.jupyter/notebooks'
4、wq保存,运行jupyter
jupyter notebook