Changing browser for IPython Notebook from system default

后端 未结 9 1263
南笙
南笙 2021-02-05 09:59

I would like to keep firefox as my system default browser on my Mac, but launch IPython Notebook in Chrome[1].

This answer led me to my ipython_notebook

9条回答
  •  萌比男神i
    2021-02-05 10:38

    For future reference, this works looks the most elegant way to edit jupyter_notebook_config.py for me on macOS:

    c.NotebookApp.browser = u'open -a "Google Chrome" %s'
    

    You can obviously replace "Google Chrome" with any other browser.

    Full procedure:

    1. jupyter notebook --generate-config
    2. open ./jupyter/jupyter_notebook_config.py
    3. Find the line #c.NotebookApp.browser and edit it as above

提交回复
热议问题