1.jupyter notebook --generate-config
2.修改jupyter_notebook_config.py配置文件
3.修改默认路径:
c.NotebookApp.notebook_dir = 'E:\DataAnalysis'
4.修改默认浏览器:
import webbrowser webbrowser.register("chrome", None, webbrowser.GenericBrowser(u"C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe")) c.NotebookApp.browser = 'chrome'