美文网首页
启动jupyter notebook无法打开网页

启动jupyter notebook无法打开网页

作者: 马尔代夫Maldives | 来源:发表于2022-05-04 13:50 被阅读0次

1、生成配置文件

打开Anaconda Prompt 命令窗口,进入base环境,输入:jupyter notebook --generate-config 回车;
生成了jupyter notebook 配置文件:jupyter_notebook_config.py

无标题.png 无标题2.png

2、修改配置文件

根据前面命令窗提供的路径,用txt打开上述配置文件;
并查找“c.NotebookApp.browser
在其中增加如下代码,其中有X部分*(图中红色下划线部分)是用户根据自指定的浏览器名称及路径信息:

import webbrowser
webbrowser.register('XXXX',None,webbrowser.GenericBrowser(u'XXXXX'))
c.NotebookApp.browser = u'XXXX'
无标题3.png

我指定的是Microsoft 的edge浏览器,具体信息如下:

QQ截图20220504134905.png

相关文章

网友评论

      本文标题:启动jupyter notebook无法打开网页

      本文链接:https://www.haomeiwen.com/subject/xeiwyrtx.html