Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyter asks an unknown password

I recently installed Anaconda (2.7) distribution on a linux box. As you may know, it includes Jupyter notebook server.

My problem is that Jupyter requires a password I don't know. Observe what happens:

$ jupyter notebook
[W 04:12:51.684 NotebookApp] WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
[I 04:12:51.702 NotebookApp] JupyterLab alpha preview extension loaded from /home/poko/Software/anaconda2/lib/python2.7/site-packages/jupyterlab
JupyterLab v0.27.0
Known labextensions:
[I 04:12:51.703 NotebookApp] Running the core application with no additional extensions or settings
[I 04:12:51.705 NotebookApp] Serving notebooks from local directory: /home/poko/courses/deeplearning1/nbs
[I 04:12:51.705 NotebookApp] 0 active kernels 
[I 04:12:51.705 NotebookApp] The Jupyter Notebook is running at: http://[all ip addresses on your system]:8888/
[I 04:12:51.705 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

My browser (either from localhost or across the internet, displays:

Browser

It should be noted that:

a) The server listens on all IP, while it should listen just on localhost by default.

b) The auto-generated config file in $HOME/.jupyter is all commented.

Footnote: This is not related to the well-known (but poorly documented) token authentication issue. Indeed, if I call a list, no token is shown:

poko@W530 ~ $ jupyter notebook list
Currently running servers:
http://localhost:8888/ :: /home/poko
like image 496
MadHatter Avatar asked Oct 23 '17 02:10

MadHatter


1 Answers

Try setting a default password with the command

jupyter notebook password

And then start your notebook with jupyter notebook and enter the same password in the browser.

Probably you had set a default password in the past, that is why it stops generating token and prefers the password.

like image 165
Akshay Rana Avatar answered Sep 18 '22 12:09

Akshay Rana