gpt4 book ai didi

python - 如何在 ubuntu 机器上自动登录 jupyterhub

转载 作者:行者123 更新时间:2023-12-04 18:44:45 26 4
gpt4 key购买 nike

我是 python 和 jupyterhub 的新手,我已经在云中安装了 juputerhub ubuntu 机器。我想在不从任何地方登录的情况下访问 jupyterhub。谁能帮我解决这个问题。

我在 jupyterhub_config.py 中尝试了以下配置

c.Authenticator.auto_login = True

我的问题没有解决

请帮我解决这个问题

最佳答案

Jupyterhub 将创建一个多用户 Hub,它生成、管理和代理单用户 Jupyter 笔记本服务器的多个实例。因此,每个用户的身份验证。
对于您的情况,如果您不需要任何身份验证(只有一个用户),那么只需直接使用 Jupyter notebook。
或者
您可以使用 yuvipanda 制作的 Dummy JupyterHub Authenticator (Link)
脚步
安装虚拟身份验证器

pip install jupyterhub-dummyauthenticator
在 jupyterhub_config.py
c.JupyterHub.authenticator_class = 'dummyauthenticator.DummyAuthenticator'
附言 c.Authenticator.auto_login适用于单点登录 (SSO),不适用于在没有任何凭据的情况下从任何地方登录。

关于python - 如何在 ubuntu 机器上自动登录 jupyterhub,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53332350/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com