[PYTHON] Jupyter notebook password

Jupyter notebook latest version security

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. image

You can use it by following the steps below.

(1) Create a configuration file as shown below.

jupyter notebook --generate-config

(2) Edit the configuration file.

There are two editing methods.

Method Description
A Set token
B set password

(2-A) When specifying token

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

(2-B) When specifying password

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

Jupyter notebook password
Jupyter Notebook memo
Introducing Jupyter Notebook
Powerful Jupyter Notebook
Jupyter Notebook memo
Get started Jupyter Notebook
[Cloud103] # 3 Jupyter Notebook again
Shortcut key for Jupyter notebook
Using Graphviz with Jupyter Notebook
Display HTML in Jupyter notebook
Use pip with Jupyter Notebook
Multiprocessing error in Jupyter Notebook
Try using Jupyter Notebook dynamically
[Super Basics] About jupyter Notebook
High charts on Jupyter notebook
View PDF on Jupyter Notebook
Use Cython with Jupyter Notebook
homebrew, pyenv, anaconda, Jupyter Notebook
Play with Jupyter Notebook (IPython Notebook)
[Complete version] Jupyter Notebook shortcut
Run Jupyter Notebook on windows
How to use Jupyter Notebook
python3.8 venv environment jupyter notebook
Allow external connections with jupyter notebook
Formatting with autopep8 on Jupyter notebook
Snippet settings for python jupyter notebook
Jupyter Notebook essential for software development
Python memo Anaconda x Jupyter Notebook
Post a Jupyter Notebook as a blog post
Visualize decision trees with jupyter notebook
Make a sound with Jupyter notebook
Jupyter Notebook Magic Command Personal Summary
Paste Jupyter Notebook document into Wordpress
Generate Jupyter notebook ".ipynb" in Python
Simply view the Jupyter notebook file
Run azure ML on jupyter notebook
Jupyter Notebook: 4 banal tips and tricks
[MEMO] [Development environment construction] Jupyter Notebook
Add more kernels with Jupyter Notebook
View graphs inline in Jupyter Notebook
Convenient analysis with Pandas + Jupyter notebook
Launch jupyter notebook (+ take security measures)
Easy to use Jupyter notebook (Python3.5)
Try running Jupyter Notebook on Mac
Somehow I tried using jupyter notebook
Try starting Jupyter Notebook ~ Esper training
I tried VS Code's Jupyter notebook
A simple way to launch Jupyter Notebook / Lab and set a password
Use nb extensions with Anaconda's Jupyter notebook
Markdown to get Jupyter notebook results to Qiita
Jupyter begins
Use apache Spark with jupyter notebook (IPython notebook)
Jupyter Notebook does not show matplotlib graphs
Jupyter Tips 4
Use Jupyter Lab and Jupyter Notebook with EC2
Make Jupyter Notebook a service on CentOS
Try SVM with scikit-learn on Jupyter Notebook
Start jupyter notebook on GPU server (remote server)
Jupyter Tips 3
Jupyter Tips 2
How to execute commands in jupyter notebook