1.打开终端 输入jupyter notebook --generate-config如下

2.在C:\Users\mb5958\.jupyter路径下

3.用记事本打开它,搜索directory

4.在你想要的路径下新建一个文件夹,如'D:\jupyterFile',然后将路径名放在c.NotebookApp.notebook_dir" = 'D:\jupyterFile'内,删除前边的#号。保存关闭
5.找到jupyter notebook的文件位置,右键-属性,更改两处
a)删掉目标中的"%USERPROFILE%/";
b)起始位置改为 D:\jupyterFile

6.重新打开jupyter notebook,就可以了