sending an email through gmail using python

[Jupyter Notebook] How to Password Protect your Jupyter Notebook?

Jupyter Notebook Installation

Installation of the Jupyter Notebook is done via pip and is actually an easy task. To install Jupyter Notebook in a particular directory do the following in your terminal:

cd Desktop
~/Desktop$ pip install notebook

After the installation is done, you can run the Jupyter Notebook by typing the following in your terminal:

jupyter notebook

Creating jupyter notebook confing file

Before moving forward to create password in the jupyter notebook, we first need to create a config file where we can add all custom configurations we want to.

jupyter notebook --generate-config

This creates a jupyter_notebook_config.py file where we can now create a password. The password will be hashed in a file jupyter_notebook_config.json

$ jupyter notebook password
Enter password: ****
Verify password: ****
[NotebookPasswordApp] Wrote hashed password to /.jupyter/jupyter_notebook_config.json

If you check your jupyter_notebook_config.json file than you will find your hashed password something like shown below:

{
“NotebookApp”: {
“password”: “sha1:1dbf43d2d25f:4967a57ac3d9e8402f93f41a90daad8220d654ce”
}