Windows下更改jupyter notebook默认响应的浏览器为Chrome

1.命令行下输入:jupyter notebook --generate-config

2.C盘中找到并打开文件:C:\Users\Administrator\.jupyter\jupyter_notebook_config.py

3.在文件头部添加以下内容,红色部分修改为本机chrome的位置:

import webbrowser
webbrowser.register('chrome', None, webbrowser.GenericBrowser(u'E:\chromeportable\chrome.exe'))
c.NotebookApp.browser = 'chrome'

相关文章:

  • 2022-01-03
  • 2021-04-20
  • 2021-08-18
  • 2022-12-23
  • 2021-09-19
  • 2021-04-19
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-01
  • 2021-07-17
  • 2021-05-07
  • 2021-11-26
  • 2021-07-21
  • 2021-12-06
  • 2021-12-11
相关资源
相似解决方案