|
|
|
|
@ -63,15 +63,28 @@ using the following command::
|
|
|
|
|
|
|
|
|
|
$ jupyter notebook --generate-config
|
|
|
|
|
|
|
|
|
|
.. _hashed-pw:
|
|
|
|
|
|
|
|
|
|
Preparing a hashed password
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
Automatic Password setup
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
As of notebook 5.3, the first time you log-in using a token, the notebook server
|
|
|
|
|
should give you the opportunity to setup a password from the user interface.
|
|
|
|
|
|
|
|
|
|
You will be presented with a form asking for the current _token_, as well as
|
|
|
|
|
your _new_ _password_ ; enter both and click on ``Login and setup new password``.
|
|
|
|
|
|
|
|
|
|
Next time you need to log in you'll be able to use the new password instead of
|
|
|
|
|
the login token, otherwise follow the procedure to set a password from the
|
|
|
|
|
command line.
|
|
|
|
|
|
|
|
|
|
The ability to change the password at first login time may be disabled by
|
|
|
|
|
integrations by setting the ``--NotebookApp.allow_password_change=True``
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
As of notebook version 5.0, you can enter and store a password for your
|
|
|
|
|
notebook server with a single command.
|
|
|
|
|
:command:`jupyter notebook password` will prompt you for your password
|
|
|
|
|
and record the hashed password in your :file:`jupyter_notebook_config.json`.
|
|
|
|
|
Starting at notebook version 5.0, you can enter and store a password for your
|
|
|
|
|
notebook server with a single command. :command:`jupyter notebook password` will
|
|
|
|
|
prompt you for your password and record the hashed password in your
|
|
|
|
|
:file:`jupyter_notebook_config.json`.
|
|
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
|
|
@ -80,6 +93,15 @@ and record the hashed password in your :file:`jupyter_notebook_config.json`.
|
|
|
|
|
Verify password: ****
|
|
|
|
|
[NotebookPasswordApp] Wrote hashed password to /Users/you/.jupyter/jupyter_notebook_config.json
|
|
|
|
|
|
|
|
|
|
This can be used to reset a lost password; or if you believe your credentials
|
|
|
|
|
have been leaked and desire to change your password. Changing your password will
|
|
|
|
|
invalidate all logged-in sessions after a server restart.
|
|
|
|
|
|
|
|
|
|
.. _hashed-pw:
|
|
|
|
|
|
|
|
|
|
Preparing a hashed password
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
|
|
|
|
|
You can prepare a hashed password manually, using the function
|
|
|
|
|
:func:`notebook.auth.security.passwd`:
|
|
|
|
|
|
|
|
|
|
@ -109,6 +131,12 @@ directory, ``~/.jupyter``, e.g.::
|
|
|
|
|
|
|
|
|
|
c.NotebookApp.password = u'sha1:67c9e60bb8b6:9ffede0825894254b2e042ea597d771089e11aed'
|
|
|
|
|
|
|
|
|
|
Automatic password setup will store the hash in ``jupyter_notebook_config.json``
|
|
|
|
|
while this method store in in ``jupyter_notebook_config.py``. The ``.json``
|
|
|
|
|
configuration options take precedence over the ``.py`` one, thus the manual
|
|
|
|
|
password may not take effect if the Json file as a password set.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Using SSL for encrypted communication
|
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
|
When using a password, it is a good idea to also use SSL with a web
|
|
|
|
|
|