首先,在安装conda后打开Anaconda Prompt控制台

进入控制台,输入下面脚本生成配置文件jupyter_notebook_config.py
bash
#生成配置文件
jupyter notebook --generate-config

打开配置文件

1 配置jupyter启动默认路径
找到字段 c.NotebookApp.notebook_dir,配置默认路径,作者这里指定了具体目录

2 配置jupyter启动默认浏览器
找到字段 c.NotebookApp.browser,作者这里配置默认浏览器为Chrome,习惯!

代码片段如下:
python
import webbrowser
webbrowser.register("chrome", None, webbrowser.GenericBrowser
(r"C:\Program Files\Google\Chrome\Application\chrome.exe"))
c.NotebookApp.browser = 'chrome'
如此,问题解决~