Блокнот Jupyter: как установить фиксированный пароль и отключить использование токена?Python

Программы на Python
Ответить
Anonymous
 Блокнот Jupyter: как установить фиксированный пароль и отключить использование токена?

Сообщение Anonymous »

Я пытался установить фиксированный пароль для блокнота Jupyter, но все время застревал.
Изображение

и всегда написано «неверные учетные данные»
вот мой json-файл (тот, что с паролем). мне пришлось самому вручную sha1, потому что по умолчанию по какой-то причине был аргон

Код: Выделить всё

{
"NotebookApp": {
"password": "sha1:b59cbb211259:e6f4c46b47130a3ad984737382893fc3d917f2de"
}
}
вот что я изменил в файле конфигурации py.
1.

Код: Выделить всё

## 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

Код: Выделить всё

## 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'

Код: Выделить всё

## 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''
я делаю что-то не так? я пытаюсь получить доступ к блокноту Jupyter прямо из инкогнито, введя в строку поиска http://localhost:8888/tree

Подробнее здесь: https://stackoverflow.com/questions/697 ... -token-use
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «Python»