1
0
Dosyalar
jupyter-docker-compose/jupyterhub_config.py
T
root e186450ac0 0
2025-06-11 07:42:51 +00:00

26 satır
828 B
Python
Çalıştırılabilir Dosya

c = get_config()
c.Authenticator.allow_all = True
c.Authenticator.allow_existing_users = True
# 管理员用户列表
c.Authenticator.admin_users = {'jupyterhub'}
c.DummyAuthenticator.password = "jupyterhub" # 初始密码设置
c.JupyterHub.admin_access = True
c.LocalAuthenticator.create_system_users=True
#c.Authenticator.admin_users = {'root'} # 管理员用户
#c.DummyAuthenticator.password = "123" # 初始密码设置
# 使用 PAMAuthenticator 作为身份验证类
c.JupyterHub.authenticator_class = 'jupyterhub.auth.PAMAuthenticator'
# 允许自动创建系统用户
c.LocalAuthenticator.create_system_users = True
# 设置每个用户的 book类型 和 工作目录(创建.ipynb文件自动保存的地方)
c.Spawner.notebook_dir = '~'
c.Spawner.default_url = '/lab'
c.Spawner.args = ['--allow-root']