jupyter notebook --generate-config
In [1]: from notebook.auth import passwd
In [2]: passwd()
Enter password:
Verify password:
Out[2]: 'sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'
c.NotebookApp.password = u'sha1:66e6f...'
pip install jupyter_contrib_nbextensions