Launch IPython notebook with selected browser

I had the same problem on windows and got it work this way:

  • Create a config file with command
    ipython profile create default

  • Edit ipython_notebook_config.py file, search for line

#c.NotebookApp.browser=""

and replace it with

import webbrowser
webbrowser.register('firefox', None, webbrowser.GenericBrowser('C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe'))
c.NotebookApp.browser="firefox"

then it works for me.

Hope it will help you.

JPG

Leave a Comment