Reputation: 41
I am a novice just starting to learn Python and other computer languages. I installed Jupiter notebook on my Mac and also anaconda and just encountered a problem when I tried to open jupyter notebook on my command.
The message popped out as :
execution error: "~~~(I just abbreviated the location)" doesn’t understand the “open location” message. (-1708)
I have no sense what's happening here.
How can I solve this?
Upvotes: 4
Views: 3014
Reputation: 1
export BROWSER=/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
Upvotes: 0
Reputation: 3
My workaround was to use the automator tool app for Mac to open both Chrome and jupyter notebook at the same time. Here's the applescript:
on run {input, parameters}
tell application "Terminal"
activate
do script with command "jupyter notebook"
end tell
tell application "Google Chrome"
activate
open location "http://localhost:8888/"
end tell
end run
Hopefully this helps! Here is a good URL on how to use Automator if you have not used it in the past: http://radarearth.com/content/automate-terminal-automator
Upvotes: 0
Reputation: 1148
This issue has been solved in the jupyter notebook github repo.
One solution would be to set you browser, for instance:
c.NotebookApp.browser = u'Safari'
in the config file: ~/.jupyter/jupyter_notebook_config.py
Upvotes: 2
Reputation: 4072
There is a similar question on SO that addresses this. There are couple of workaround that are suggested there to avoid this issue:
Ipython notebook will not start on command line
Also, it is a known issue that may be due to a recent upgrade of Mac OSX. You can follow the discussion here, here and here.
Upvotes: 0