admin管理员组文章数量:1431838
1.2 jupyter notebook 浏览器打开空白
jupyter notebook 需要用谷歌浏览器打开才可以,其他的浏览器打开后多半是空白的。添加默认浏览器如下:
1.在anaconda prompt 里面直接输入
jupyter notebook --generate-config
让jupyter生成一个配置文件,生成后你会看到文件地址的
2.然后就可以使用记事本之类的,打开这个jupyter_notebook_config.py文件
然后查找,browser,找到如下代码:
## Specify what command to use to invoke a web browser when opening the notebook.
# If not specified, the default browser will be determined by the `webbrowser`
# standard library module, which allows setting of the BROWSER environment
# variable to override it.
#c.NotebookApp.browser = u''
在这个后面,添加google浏览器
-
import webbrowser
-
webbrowser.register('chrome', None, webbrowser.GenericBrowser(u'C:\Program Files (x86)\Google\Chrome\Application\chrome.exe'))
-
c.NotebookApp.browser = 'chrome'
版权声明:本文标题:jupyter notebook 浏览器打开空白 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/biancheng/1737921897a2036182.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论