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_config.py
file but I can't get an instance of Chrome running. After c = get_config()
and import webbrowser
, I've tried:
webbrowser.register(u'chrome', None, webbrowser.Chrome())
webbrowser.register(u'chrome', webbrowser.Chrome)
webbrowser.register(u'chrome', None, webbrowser.GenericBrowser('/Applications/Browsers/Chrome.app'))
webbrowser.register(u'chrome', None, webbrowser.GenericBrowser('/Applications/Browsers/Chrome.app/Contents/MacOS/Google\ Chrome'))
All followed by c.NotebookApp.browser = u'chrome'
I've fiddled with webbbrowser
in the interpreter, and couldn't figure out how to create an instance of Chrome.
[1]: PS Why is IPython Notebook so slow in firefox, especially for pylab with the inline backend? It's orders of magnitude faster (for rendering, scrolling, etc) in chrome.