Changing browser for IPython Notebook from system default

后端 未结 9 1100
南笙
南笙 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:53

    On OS X, you can put the following in ipython_notebook_config.py to open Chrome:

    c.NotebookApp.browser = u'/usr/bin/open -a Google\\ Chrome %s'
    

    The executable in '/Applications/Google Chrome.app/Contents/MacOS/Google Chrome' fails for me with 'unable to obtain profile lock', so going through 'open' is the only simple alternative I see.

提交回复
热议问题