From 24f70198b99d725dab4de6ed1f5630c7c8fae464 Mon Sep 17 00:00:00 2001 From: Lance <10292888+Lance1o7@users.noreply.github.com> Date: Tue, 11 Mar 2025 13:56:56 -0400 Subject: [PATCH] Updated FAQs.rst to reflect changes in Jupyter Notebook config https://jupyter-notebook.readthedocs.io/en/v6.5.2/public_server.html#preparing-a-hashed-password --- docs/source/faqs.rst | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/faqs.rst b/docs/source/faqs.rst index 85e3cad46a..1499105b06 100644 --- a/docs/source/faqs.rst +++ b/docs/source/faqs.rst @@ -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