jupyter notebook新建python3空白_jupyter notebook打开空白

今天在自己的一台笔记本电脑上使用jupyternotebook,打开jupyternotebook之后启动IE浏览器,可是浏览器中啥也没有显示,空白的。

先是试了卸载jupyter notebook,再重新安装的方法,没有用,后来按下面的方法得到解决:

1.打开cmd,输入jupyter notebook --generate-config

然后会显示jupyter_notebook_config.py这个文件所在的位置。

2.根据上面提示的位置,打开C:\Users\Kevin\.jupyter\jupyter_notebook_config.py

3.在文件的末尾添加以下代码:

import webbrowser

webbrowser.register('2345Explorer', None, webbrowser.GenericBrowser(u'C:\\Program Files\\Mozilla Firefox\\firefox.exe'))

c.NotebookApp.browser = '2345Explorer'

然后你再打开jupyter notebook,就会发现它启动的是你设定的其他浏览器了。

参考:https://blog.csdn.net/weixin_42102444/article/details/88849905