默认打开Jupyter notebook,工做目录是C:\Users\Username,这里面有不少其它与Jupyter notebook无关的文件,也颇有用,不能看着烦就删掉,因此须要修改Jupyter notebook的工做目录,建立一个干净清爽的工做环境。方法以下:html
控制台输入:jupyter notebook --generate-configpost
而后自动生成了jupyter_notebook_config.py,修改里面的内容,就能够实现配置。htm
里面内容都是以注释形式写好了怎么配置,很是友好,配置工做目录就是下面这个样子:blog
从新启动Jupyter notebook,就OK啦。io
参考自:http://jupyter-notebook.readthedocs.io/en/latest/config.htmlclass