zoukankan      html  css  js  c++  java
  • 设置 Jupyter notebook 运行的浏览器

    电脑中装了Firefox和Chrome浏览器,系统默认浏览器是Chrome,希望每次运行Jupyter在Firefox浏览器,而不是系统默的Chrome.
    进入cmd,执行jupyter notebook --generate-config,生成jupyter notebook配置文件。

    如果jupyter notebook配置文件已经存在,可以在C:Users用户名.jupyter找到文件jupyter_notebook_config.py

    打开jupyter_notebook_config.py文件,搜索c.NotebookApp.browser

    #c.NotebookApp.browser = ''修改代码如下

    import webbrowser 
    webbrowser.register( "Firefox", None, webbrowser.GenericBrowser("C:/Program Files/Mozilla Firefox/firefox.exe"))
    c.NotebookApp.browser = "Firefox"
    

    也可以通过搜索c.NotebookApp.notebook_dir,修改#c.NotebookApp.notebook_dir = ''代码,更改Jupyter notebook默认打开路径

  • 相关阅读:
    CF Round433 B. Jury Meeting
    CF Round433 C. Planning
    繁忙的都市
    联络员
    组合数模板
    Rinne Loves Xor
    [SDOI2016]齿轮
    水题(water)
    Music Problem
    小H和游戏
  • 原文地址:https://www.cnblogs.com/lqqgis/p/12743777.html
Copyright © 2011-2022 走看看