Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jupyter Notebook Server password invalid

Tags:

I've used the setup instructions found here: http://jupyter-notebook.readthedocs.io/en/latest/public_server.html

After starting the server, every time I attempt to login it refuses to take my password. I've verified the hash, used the passwd() function from notebook.auth as the sha1 generator.

Lastly, the password value is set in the jupyter_notebook_config.py file.

Is there something I'm missing here. I can see the POST request and everything, but it will not take the password that I've set.

A few google searches have turned up nothing thus far. I'm using the Anaconda v1.5.1 distro on Linux Mint 17. Thanks

like image 514
Kenny Powers Avatar asked Sep 29 '16 00:09

Kenny Powers


People also ask

How do I change my Jupyter server password?

Resetting your Password If you forget your password and need to reset it: Open your Jupyter environment. Then run "jupyter notebook password". Enter a new password when prompted.

What is the default password for jupyter notebook?

JupyterHub on Amazon EMR has a default user with administrator permissions. The user name is jovyan and the password is jupyter .

Where is jupyter notebook password stored?

Alternatives to token authentication jupyter notebook password will prompt you for a password, and store the hashed password in your jupyter_notebook_config. json . New in version 5.0: jupyter notebook password command is added.


2 Answers

I was able to set a password and use that to login. I did not have luck running jupyter notebook password, but jupyter server password did work.

like image 87
Chappy Hickens Avatar answered Oct 18 '22 06:10

Chappy Hickens


You can make a configuration to all options in a file, generated by command jupyter notebook --generate-config.

This will produce a file with all configurations explained and commented out in the file ~/.jupyter/jupyter_notebook_config.py.

  • vi jupyter_notebook_config.py to access and edit

In this file you can un-comment:

## Allow password to be changed at login for the notebook server. # #  While loggin in with a token, the notebook server UI will give the opportunity #  to the user to enter a new password at the same time that will replace the #  token login mechanism. # #  This can be set to false to prevent changing password from the UI/API. c.NotebookApp.allow_password_change = True 

and set some starting or no token with

## Token used for authenticating first-time connections to the server. # #  When no password is enabled, the default is to generate a new, random token. # #  Setting to an empty string disables authentication altogether, which is NOT #  RECOMMENDED. c.NotebookApp.token = '' 

For a simple single password: In the jupyter_notebook_config.py:

# my notebooks settings c = get_config() c.NotebookApp.ip = '*' c.NotebookApp.open_browser = False c.NotebookApp.port = 5000  # setting up the password from IPython.lib import passwd password = passwd("your_secret_password") c.NotebookApp.password = password 

See also here in the docs:https:

like image 36
Eric Hodgins Avatar answered Oct 18 '22 04:10

Eric Hodgins