When I tried to open jupyter nootbook, the following error was displayed and the browser did not open automatically, so I investigated how to deal with it. Probably due to a Mac OS update.
0:97: execution error: "http://localhost:8888/tree?token=2ab101b71b3d00b692865cb0039257b68afa12c9d57615fd"Cannot recognize the “open location” message.(-1708)
Or
0:97: execution error: "http://localhost:8888/tree?token=2ab101b71b3d00b692865cb0039257b68afa12c9d57615fd" doesn’t understand the “open location” message. (-1708)
Solved by adding the following to .zshrc
.
~/.zshrc
export BROWSER=open
If that doesn't help, try the following:
I solved it by adding the following to .zshrc
.
~/.zshrc
export BROWSER=/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
If it is not zsh, change the .zshrc
part to .bash_profile
etc. as appropriate.
The solution is to add the following to ~ / .jupyter / jupyter_notebook_config.py
.
~/.jupyter/jupyter_notebook_config.py
c.NotebookApp.browser = u'Safari'
Or
~/.jupyter/jupyter_notebook_config.py
c.NotebookApp.browser = u'firefox'
Try the method of Safari and firefox with chrome. When I tried the chrome method in Safari or firefox, it didn't work. If possible, I would like to unify to either of the above. If there is something that you can do, please comment. Also, if you say that it does not have to be opened automatically, you do not need to do something like ↑. This time, we dealt with it as a first aid measure, but if it is officially dealt with, it will not be necessary to take measures by ourselves.
https://github.com/jupyter/notebook/issues/2438
Recommended Posts