What to do if your Jupyter Notebook for beginners asks for a password or token

Problems faced

――One morning, when I tried to open the Jupyter Notebook, the following screen appeared.

Information obtained with Qiita

https://qiita.com/SaitoTsutomu/items/aee41edf1a990cad5be6 https://qiita.com/cafeal/items/dfc1619a60c3cdd63f1e

In the first place, this password input screen seems to appear (?) Every time you start Jupyter Notebook. But in my case I have never seen it. I've started it about 50 times already. It is unknown why it was the current timing.

Apparently 1 $ jupyter notebook --generate-config 2 $ jupyter notebook password If you enter in the terminal, it will be displayed that you can ** set any password **, so you should have been able to set it. However, I can't enter it in the Chrome field.

View official documentation

The kettle and formula are the most secure. Of course it's in English. https://jupyter-notebook.readthedocs.io/en/latest/public_server.html

Automatic Password setup

As of notebook 5.3, the first time you log-in using a token, the notebook server should give you the opportunity to setup a password from the user interface.

You will be presented with a form asking for the current token, as well as your new password ; enter both and click on Login and setup new password.__

It was written that, apparently from the password request screen --Any password you want to set --Token If you enter, it will be set.

Get a token

If you look closely, you can see how to get the token on the password request screen.

The command:

jupyter notebook list will show you the URLs of running servers with their tokens, which you can copy and paste into your browser. For example: Currently running servers: http://localhost:8888/?token=c8de56fa... :: /Users/you/notebooks or you can paste just the token value into the password field on this page.

so $ jupyter notebook list Of the value returned in http: // localhost: 8888 /? token = (this is the token) :: / Users / (user name) Copy and paste this into Chrome's Setup a Password and set any password. I'm glad Chrome remembers the password.

Finally

Since I am a beginner, I think there is a mistake in the term, but please forgive me. Please point out any mistakes in the content.

Recommended Posts

What to do if your Jupyter Notebook for beginners asks for a password or token
What to do if fprintd requires a password when registering your fingerprint
What to do if NotADirectoryError: [Errno 20] Not a directory:'xdg-settings' appears in jupyter notebook
What to do if Jupyter Notebook on WSL does not start automatically in your browser
What to do if you forget your login password on Manjaro Linux
[For beginners] What to do after installing Anaconda
What to do if you should have set an ssh key but are prompted for a password
[Python] What to do if you get a ModuleNotFoundError when importing pandas using Jupyter Notebook in Anaconda
What to do if the latest Jupyter Notebook and nb extensions don't work
What to do if a UnicodeDecodeError occurs in pip
What to do if ubuntu says your password is too short to change [passwd command] [ubuntu]
What to do if pip gives a DistributionError in Homebrew
What to do if a 0xC0000005 error occurs in tf.train.start_queue_runners ()
What to do if you lose your EC2 key pair
What to do if you get a Cannot retrieve metalink for repository error in yum
What to do if you cat or tail a binary file and the terminal is garbled
What to do if yum breaks
What to do if Python doesn't work on Git for Windows
What to do if you get a minus zero in Python
What to do if you get a UnicodeDecodeError with pip install
What to do if you can't build your project with Maven
What to do if there is a decimal in python json .dumps
What to do if you can't find PDO in Laravel or CakePHP
What to do if your disk runs out due to MySQL binary logs
What to do if No Python documentation found for ... appears in pydoc
What to do if you get a TypeError with numpy min, max
What to do if you get the error Input contains NaN, infinity or a value too large for dtype ('float64'). In machine learning
For those who want to use Jupyter Notebook as soon as 1 second because they do not know the password
What to do if you get a "No versions found" error in pipenv
What to do if Django can't load an image from a static folder
What to do if a Unicode Encode Error occurs in Sublime Text Python
What to do when the graph does not appear in jupyter (ipython) notebook
What to do if a version error occurs in the selenium Chrome driver
Library for "I want to do that" of data science on Jupyter Notebook
How to debug with Jupyter or iPython Notebook
What to do if pipreqs results in UnicodeDecodeError
What to do if you can't pipenv shell
Note: What to do if pip install fails
What to do if mod_fcgid cannot resolve UnicodeEncodeError
What to do if rails s doesn't work
What to do if pip cannot be installed
What to do if atom autocomplete-python doesn't work
What to do if Docker-sync suddenly stops working
What to do if "amazon-linux-extras" → "No module named amazon_linux_extras"
What to do if you get `No kernel for language python found` in Hydrogen
What to do if you get a memory error when converting from PySparkDataFrame to PandasDataFrame
What to do if pvcreate produces a lot of WARNING and cannot be created
What to do if ENOENT: no such file or directory appears during npm install
What to do if you get an Import Error when importing matplotlib with Jupyter
Jupyter notebook password
What to do if pip install fails in Xcode 5.1
What to do if you can't pip install mysqlclient
No module named What to do if you get'libs.resources'
ModuleNotFoundError: No module What to do if you get'tensorflow.contrib'
What to do if SciPy installation fails on CentOS
What to do when gdal_merge creates a huge file
Mac application for double-clicking to open Jupyter Notebook (* .ipynb)
Open Jupyter Lab (or Jupyter Notebook) by specifying a directory
Next to Excel, for the time being, jupyter notebook
What to do if pip install fails to install dependent libraries
What to do if sys / cdefs.h does not exist