Ipython laptop does not start at command prompt

I tried opening ipython in the terminal using ipython notebookand it will not open the ipython laptop. It gives the following error:

| ~/documents/ud120-projects/datasets_questions @ HJ (JiaHui)
| => ipython notebook
[TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and 
will be removed in future versions.
[TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook` in 
the future
[I 14:46:50.516 NotebookApp] Serving notebooks from local directory: 
/Users/JiaHui/Documents/ud120-projects/datasets_questions
[I 14:46:50.517 NotebookApp] 0 active kernels 
[I 14:46:50.517 NotebookApp] The Jupyter Notebook is running at: 
http://localhost:8888/?token=ef13f681f4d61223064e41a5a9e369813c155d27b0103471
[I 14:46:50.517 NotebookApp] Use Control-C to stop this server and shut down 
all kernels (twice to skip confirmation).
[C 14:46:51.567 NotebookApp] 

Copy/paste this URL into your browser when you connect for the first time,
to login with a token:
    http://localhost:8888/?
token=ef13f681f4d61223064e41a5a9e369813c155d27b0103471
0:97: execution error: "http://localhost:8888/tree?
token=145eccd35722c35c6525d8a4d376f27aa60358dc7d00de4c" doesn’t understand the 
"open location" message. (-1708)

I updated conda jupyter, but it still won't work. How can i fix this?

+6
source share
6 answers

This issue is related to the latest Mac OSX 10.12.5 update. To resolve it, follow these steps:

  • Create a jupyter configuration if you don't have one:
    jupyter notebook --generate-config
  • vim, Google :
    c.NotebookApp.browser = u'chrome '(, # )
+22

, Kiem Nguyen , "chrome" , .bash_profile, Hanshenry90.

Safari , :

jupyter notebook --generate-config
cd ~.jupyter
nano jupyter_notebook_config.py

ctrl + w "NotebookApp.browser" + , . # :

c.NotebookApp.browser = u'Safari'

, jupyter notebook, Safari.

- , Chrome, .

+3

imarti :

export BROWSER=open

EDIT: macOS 10.12.6, - .

+2

nano .bash_profile file :

BROWSER=/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome
export BROWSER
+1

, ...

. : http://localhost:8888/

, ​​ . ipykernel :

pip install ipykernel --upgrade

0

, , - Mac OSX. , .

0
source

Source: https://habr.com/ru/post/1017370/


All Articles