在安裝完Anaconda,選擇了配置環境變量后,打開cmd命令行
1. 打開命令行, 鍵入
ipython profile create
2. 鍵入 , 根據這個地址, 打開profile所在的文件夾
ipython locate
例如我的是:
C:\Users\lxf\.ipython\profile_default
3. 打開這個文件: ipython_notebook_config.py
添加
c.NotebookManager.save_script = True
c.NotebookManager.notebook_dir = u'C:\\Users\\' (任何想要的路徑)
【參考】
http://www.th7.cn/Program/Python/201505/458161.shtml