Ai
1 Star 1 Fork 1

linlongdeng/jupyterhub-localsqliteauthenticator

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
jupyterhub_config.py 528 Bytes
一键复制 编辑 原始数据 按行查看 历史
sparkingarthur 提交于 2018-08-21 15:20 +08:00 . Update jupyterhub_config.py
c.JupyterHub.bind_url = 'http://:9002'
c.Authenticator.add_user_cmd = ['adduser', '--home', '/home/USERNAME']
c.LocalAuthenticator.create_system_users = True
c.Authenticator.delete_invalid_users = True
c.JupyterHub.authenticator_class = 'sqliteauthenticator.SQLiteAuthenticator'
c.Authenticator.admin_users = {'admin'}
from jupyterhub.spawner import LocalProcessSpawner
class MySpawner(LocalProcessSpawner):
def _notebook_dir_default(self):
return '/home/' + self.user.name
c.JupyterHub.spawner_class = MySpawner
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/linlongdeng/jupyterhub-localsqliteauthenticator.git
git@gitee.com:linlongdeng/jupyterhub-localsqliteauthenticator.git
linlongdeng
jupyterhub-localsqliteauthenticator
jupyterhub-localsqliteauthenticator
master

搜索帮助