win10 修改 jupyter notebook 的默认工作目
2020-06-16 本文已影响0人
昵称违法
1、从Anaconda官网下载软件并安装;
2、打开开始菜单,找到Anaconda-prompt,双击运行;
3、输入命令行jupyter-notebook --generate-config;

注意:网上有的地方说用cmd输入命令,在我的电脑上是不行的,请大家注意。
4、找到生成的jupyter_notebook_config.py文件,文本打开后找到#c.NotebookApp.notebook_dir = '',更改后面的位置,将#注释标记去掉,同时,创建你要设定的工作目录;
配置文件的路径在【图1】中3所示

5、找到jupyter-notebook的快捷方式,将属性里的目标的%USERPROFILE%去掉。

6、结果显示:
【1】新建一个python的notebook,取名【HELLO KITTY】

