jupyter-server / jupyter_server

The backend—i.e. core services, APIs, and REST endpoints—to Jupyter web applications.
https://jupyter-server.readthedocs.io
BSD 3-Clause "New" or "Revised" License
489 stars 307 forks source link

how to Use PasswordIdentityProvider.allow_password_change #1446

Open CJ-Miao opened 3 months ago

CJ-Miao commented 3 months ago

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?

krassowski commented 3 months ago

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 commented 3 months ago

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~ :)