It seems that security has been enhanced since the notebook package became 4.3. Reference: Security in the Jupyter notebook server
If you say "jupyter notebook", you will be prompted to enter the password.
You can use it by following the steps below.
jupyter notebook --generate-config
There are two editing methods.
Method | Description |
---|---|
A | Set token |
B | set password |
Add the following to ~ / .jupyter / jupyter_notebook_config.py. (Please change xxx as appropriate)
c.NotebookApp.token = 'xxx'
In this case, it seems that you can use it either by entering "xxx" as the password of the login screen or by doing the following in the URL of the browser.
http: Host URL: 8888 /? token = xxx
First, in python, do the following and enter the password (eg xxx) twice to get the hash character.
python -c 'from notebook.auth import passwd;print(passwd())'
>>>
sha1:152704c5513c:0e0781437e7d013892eb7662f5ee5a67b235ec1a
Add the following to ~ / .jupyter / jupyter_notebook_config.py.
c.NotebookApp.password = 'sha1:152704c5513c:0e0781437e7d013892eb7662f5ee5a67b235ec1a'
In this case, you can enter the password specified on the login screen. It seems that the URL option cannot be used.
that's all
Recommended Posts