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

后端 未结 19 2339
盖世英雄少女心
盖世英雄少女心 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 10:45

    To achieve this on Windows 10, I had to do the following:

    For a temporarily choose/specify a browser from the Anaconda Prompt CLI (note the order/type of quotes, they seem to be different to most other answers as those answers failed to work for me):

    jupyter notebook --browser="'C:\Program Files (x86)\BraveSoftware\Brave-Browser\Application\brave.exe' %s"
    

    To set it permanently, edit the jupyter_notebook_config.py file in your .jupyter folder. I'm not certain that you need to escape the backslashes (i.e. \ vs just ), but I used the following and it worked (again, note that the order/type of quotes is different):

    c.NotebookApp.browser = '"C:\\Program Files (x86)\\BraveSoftware\\Brave-Browser\\Application\\brave.exe" %s'
    

提交回复
热议问题