Changing browser for IPython Notebook from system default

后端 未结 9 1246
南笙
南笙 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条回答
  •  自闭症患者
    2021-02-05 10:42

    Based on this answer, (running Python 2.7.3 and IPython-0.13.1 on Linux), all I had to set in my ipython_notebook_config.py was

    c.NotebookApp.browser = u'/usr/bin/google-chrome %s'
    

    I'm guessing, setting c.NotebookApp.browser to /Applications/Browsers/Chrome.app/Contents/MacOS/Google Chrome %s should work for you.

提交回复
热议问题