@@ -63,15 +63,28 @@ using the following command::
6363
6464 $ jupyter notebook --generate-config
6565
66- .. _hashed-pw :
6766
68- Preparing a hashed password
69- ~~~~~~~~~~~~~~~~~~~~~~~~~~~
67+ Automatic Password setup
68+ ~~~~~~~~~~~~~~~~~~~~~~~~
69+
70+ As of notebook 5.3, the first time you log-in using a token, the notebook server
71+ should give you the opportunity to setup a password from the user interface.
72+
73+ You will be presented with a form asking for the current _token_, as well as
74+ your _new_ _password_ ; enter both and click on ``Login and setup new password ``.
75+
76+ Next time you need to log in you'll be able to use the new password instead of
77+ the login token, otherwise follow the procedure to set a password from the
78+ command line.
79+
80+ The ability to change the password at first login time may be disabled by
81+ integrations by setting the ``--NotebookApp.allow_password_change=False ``
82+
7083
71- As of notebook version 5.0, you can enter and store a password for your
72- notebook server with a single command.
73- :command: ` jupyter notebook password ` will prompt you for your password
74- and record the hashed password in your :file: `jupyter_notebook_config.json `.
84+ Starting at notebook version 5.0, you can enter and store a password for your
85+ notebook server with a single command. :command: ` jupyter notebook password ` will
86+ prompt you for your password and record the hashed password in your
87+ :file: `jupyter_notebook_config.json `.
7588
7689.. code-block :: bash
7790
@@ -80,6 +93,15 @@ and record the hashed password in your :file:`jupyter_notebook_config.json`.
8093 Verify password: ****
8194 [NotebookPasswordApp] Wrote hashed password to /Users/you/.jupyter/jupyter_notebook_config.json
8295
96+ This can be used to reset a lost password; or if you believe your credentials
97+ have been leaked and desire to change your password. Changing your password will
98+ invalidate all logged-in sessions after a server restart.
99+
100+ .. _hashed-pw :
101+
102+ Preparing a hashed password
103+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
104+
83105You can prepare a hashed password manually, using the function
84106:func: `notebook.auth.security.passwd `:
85107
@@ -109,6 +131,12 @@ directory, ``~/.jupyter``, e.g.::
109131
110132 c.NotebookApp.password = u'sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'
111133
134+ Automatic password setup will store the hash in ``jupyter_notebook_config.json ``
135+ while this method store in in ``jupyter_notebook_config.py ``. The ``.json ``
136+ configuration options take precedence over the ``.py `` one, thus the manual
137+ password may not take effect if the Json file as a password set.
138+
139+
112140Using SSL for encrypted communication
113141~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
114142When using a password, it is a good idea to also use SSL with a web
0 commit comments