2

I've set up jupyter notebook to open in Opera on Ubuntu (Chrome and lastpass don't work well with jupyter). I followed this guide.

However, when I open jupyter notebook from the terminal, it takes me to http://openurl%28http//localhost:8888/tree,new-page) instead of http://localhost:8888/tree.

The proper url is still opened fine on Chrome. Running Anaconda Python 3 on Ubuntu 16.04.

Any ideas?

Reblochon Masque
  • 35,405
  • 10
  • 55
  • 80
wordsforthewise
  • 13,746
  • 5
  • 87
  • 117

2 Answers2

5

Set this in your jupyter_notebook_config.py (assuming you installed Opera in /usr/bin)

c.NotebookApp.browser = '/usr/bin/opera %s'
AnthonyC
  • 1,880
  • 2
  • 20
  • 27
  • Fixed a problem that was a real pain for me. Jupyter Notebook now opens Opera like a charm. Adding the %s was the key. – JackNorthrup Mar 18 '18 at 00:22
  • The "%s" works for windows as well, thank you! ` ` `c.NotebookApp.browser = 'C:/Program Files/Opera/launcher.exe %s'` – Tony Apr 07 '18 at 18:39
  • For someone who's new to Anaconda or Jupyter notebooks, [here](https://stackoverflow.com/a/32626312/5968979)'s how to find the `jupyter_notebook_config.py` file – gaurang847 Oct 13 '18 at 16:27
1

According to this issue (https://github.com/jupyter/notebook/issues/1832), disabling the turbo mode might help.

Laurent Gosselin
  • 2,051
  • 1
  • 11
  • 10