Jupyter-Notebook: Wie lege ich ein festes Passwort fest und deaktiviere die Token-Nutzung?Python

Python-Programme
Guest
 Jupyter-Notebook: Wie lege ich ein festes Passwort fest und deaktiviere die Token-Nutzung?

Post by Guest »

Ich habe versucht, ein festes Passwort für Jupyter Notebook festzulegen, aber ich bleibe hier immer hängen
Image

und es heißt immer „ungültige Anmeldeinformationen“
hier ist meine JSON-Datei (die mit dem Passwort). Ich musste es selbst manuell sha1, da die Standardeinstellung aus irgendeinem Grund Argon war

Code: Select all

{
"NotebookApp": {
"password": "sha1:b59cbb211259:e6f4c46b47130a3ad984737382893fc3d917f2de"
}
}
Hier ist, was ich in meiner Py-Konfigurationsdatei geändert habe.
1.

Code: Select all

## Allow password to be changed at login for the notebook server.
#
#  While logging in with a token, the notebook server UI will give the
#  opportunity to the user to enter a new password at the same time that will
#  replace the token login mechanism.
#
#  This can be set to false to prevent changing password from the UI/API.
#  Default: True
c.NotebookApp.allow_password_change = False

Code: Select all

## Hashed password to use for web authentication.
#
#  To generate, type in a python/IPython shell:
#
#    from notebook.auth import passwd; passwd()
#
#  The string should be of the form type:salt:hashed-password.
#  Default: ''
c.NotebookApp.password = u'sha1:b59cbb211259:e6f4c46b47130a3ad984737382893fc3d917f2de'

Code: Select all

## Token used for authenticating first-time connections to the server.
#
#  The token can be read from the file referenced by JUPYTER_TOKEN_FILE or set
#  directly with the JUPYTER_TOKEN environment variable.
#
#  When no password is enabled, the default is to generate a new, random token.
#
#  Setting to an empty string disables authentication altogether, which is NOT
#  RECOMMENDED.
#  Default: ''
c.NotebookApp.token = u''
Mache ich etwas falsch? Ich versuche, direkt im Inkognito-Modus auf das Jupyter-Notebook zuzugreifen, indem ich http://localhost:8888/tree

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post