Jupyter Notebook不能自动打开默认浏览器怎么办?

在安装anaconda的过程中,部分用户可能会遇到,打开Jupyter Notebook的时候,不会弹出默认浏览器。本章教程给出解决办法。

在这里插入图片描述

一、生成一个jupyter默认配置文件

打开cmd,运行以下命令,会生成一个jupyter_notebook配置文件。

jupyter notebook --generate-config

在这里插入图片描述

二、编辑jupyter_notebook_config.py文件

1、使用Edge浏览器打开

import webbrowser
webbrow