Skip to content

Updated FAQs.rst to reflect changes in Jupyter Notebook config #1467

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/source/faqs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -262,20 +262,20 @@ A hashed password is saved in the Jupyter Notebook configuration file.

/root/.jupyter/jupyter_notebook_config.py

You can create a hashed password using the function ``IPython.lib.passwd()``:
You can create a hashed password using the function ``notebook.auth.passwd()``:

.. code-block:: python

from IPython.lib import passwd
from notebook.auth import passwd
password = passwd("secret")
6c2164fc2b22:ed55ecf07fc0f985ab46561483c0e888e8964ae6
argon2:$argon2id$v=19$m=10240,t=10,p=8$RtRr2NIdfjs7U/PvDSP0SQ$F/anN49jBe8OBNOpp5my3saZ3OGsZlspHf+iBEnTIoQ


You can then add or modify the line in the `jupyter_notebook_config.py` file

.. code-block:: console

c.NotebookApp.password =u'sha1:6c2164fc2b22:ed55ecf07fc0f985ab46561483c0e888e8964ae6'
c.NotebookApp.password =u'argon2:$argon2id$v=19$m=10240,t=10,p=8$RtRr2NIdfjs7U/PvDSP0SQ$F/anN49jBe8OBNOpp5my3saZ3OGsZlspHf+iBEnTIoQ'


General Questions
Expand Down