How to change the default browser used by jupyter notebook in windows

后端 未结 19 2362
盖世英雄少女心
盖世英雄少女心 2020-12-04 10:17

I\'m on a windows machine without admin right and I would like to run jupyter on chrome, while the default browser is another.

I have a local installation of the Ana

19条回答
  •  日久生厌
    2020-12-04 11:03

    I don't know the precise details for Windows, but this is how to set the default browser on a Mac:

    jupyter notebook --generate-config
    

    This creates a file jupyter_notebook_config.py in ~/.jupyter. Edit the line

    #c.NotebookApp.browser = ''
    

    On a Mac I set it to:

    c.NotebookApp.browser = u'/Applications/Gooogle\ Chrome.app %s'
    

    You just need to figure out how to point it to Chrome on Windows.

提交回复
热议问题