Skip to content
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

how to Use PasswordIdentityProvider.allow_password_change #1446

Open
CJ-Miao opened this issue Jul 26, 2024 · 2 comments
Open

how to Use PasswordIdentityProvider.allow_password_change #1446

CJ-Miao opened this issue Jul 26, 2024 · 2 comments
Labels

Comments

@CJ-Miao
Copy link

CJ-Miao commented Jul 26, 2024

got the warning DEPRECATED in 2.0. Use PasswordIdentityProvider.allow_password_change
But I dont know how to revise my server_config .How can i use this function?

@CJ-Miao CJ-Miao added the bug label Jul 26, 2024
@krassowski
Copy link
Collaborator

It means that you should replace the reference to ServerApp.allow_password_change (or NotebookApp.allow_password_change if you are migrating from a very old version) with PasswordIdentityProvider.allow_password_change. This must be somewhere in one of your config files, you can find paths for config by running jupyter --paths

@CJ-Miao
Copy link
Author

CJ-Miao commented Jul 27, 2024

I want to connect to Jupyter Notebook on a Remote Server.
My config is as follow :
c.ServerApp.ip = '*'
c.PasswordIdentityProvider.hashed_password = u'argon2:$argon2id$v....(my hashed password)'
c.ServerApp.open_browser = False
c.ServerApp.port = 9999

I run jupyter server and got this.
miaocj@c1da71679ac4:~$ jupyter server
[I 2024-07-27 13:19:19.165 ServerApp] Extension package jupyterlab took 0.1132s to import
[I 2024-07-27 13:19:19.362 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2024-07-27 13:19:19.365 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2024-07-27 13:19:19.368 ServerApp] jupyterlab | extension was successfully linked.
[I 2024-07-27 13:19:19.372 ServerApp] notebook | extension was successfully linked.
[I 2024-07-27 13:19:19.700 ServerApp] notebook_shim | extension was successfully linked.
[W 2024-07-27 13:19:19.720 ServerApp] WARNING: The Jupyter server is listening on all IP addresses and not using encryption. This is not recommended.
[I 2024-07-27 13:19:19.720 ServerApp] notebook_shim | extension was successfully loaded.
[I 2024-07-27 13:19:19.722 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2024-07-27 13:19:19.722 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2024-07-27 13:19:19.727 LabApp] JupyterLab extension loaded from /opt/conda/lib/python3.12/site-packages/jupyterlab
[I 2024-07-27 13:19:19.727 LabApp] JupyterLab application directory is /opt/conda/share/jupyter/lab
[I 2024-07-27 13:19:19.727 LabApp] Extension Manager is 'pypi'.
[I 2024-07-27 13:19:19.737 ServerApp] jupyterlab | extension was successfully loaded.
[I 2024-07-27 13:19:19.740 ServerApp] notebook | extension was successfully loaded.
[I 2024-07-27 13:19:19.740 ServerApp] Serving notebooks from local directory: /home/miaocj
[I 2024-07-27 13:19:19.740 ServerApp] Jupyter Server 2.14.2 is running at:
[I 2024-07-27 13:19:19.740 ServerApp] http://localhost:9999/
[I 2024-07-27 13:19:19.740 ServerApp] http://127.0.0.1:9999/
[I 2024-07-27 13:19:19.740 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 2024-07-27 13:19:19.984 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server

but when I open my_server_ip:9999 .It show deny my access.
What problem is it? Thank u~ :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants