Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
F
first
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
问题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
银宸大学计算机学院
教师群组
宋海霞-shx
exchange
first
提交
c9f96d69
提交
c9f96d69
1月 13, 2021
创建
作者:
宋海霞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
增加新文件
上级
311c2367
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
21 行增加
和
0 行删除
+21
-0
jupyterhub-setup.md
jupyterhub-setup.md
+21
-0
没有找到文件。
jupyterhub-setup.md
0 → 100644
浏览文件 @
c9f96d69
https://jupyterhub.readthedocs.io/en/stable/installation-guide-hard.html
import os
os.environ['GITLAB_HOST'] = 'http://192.168.0.106'
c.JupyterHub.admin_access = True
from oauthenticator.gitlab import LocalGitLabOAuthenticator
c.JupyterHub.authenticator_class = LocalGitLabOAuthenticator
c.LocalGitLabOAuthenticator.login_service='codecode.net'
c.GitLabOAuthenticator.oauth_callback_url = 'http://192.168.0.107/jupyter/hub/oauth_callback'
c.LocalGitLabOAuthenticator.client_id = '66f488cda42451d8189c2996f1de6d50f5f9909c5acf3898d207eca40bab40fe'
c.LocalGitLabOAuthenticator.client_secret = 'e24ef88fa8367066846a8ced1c16a0cf475b917f7cd275515e8e11f0f2eedca3'
c.LocalAuthenticator.create_system_users = True
c.Authenticator.add_user_cmd = ['adduser', '-q', '--gecos', '""', '--disabled-password', '--force-badname']
c.JupyterHub.bind_url = 'http://:8000/jupyter'
c.Spawner.default_url = '/lab'
#c.Authenticator.allowed_users = {'engintime','shx', 'test'}
#c.Authenticator.admin_users = {'engintime'}
\ No newline at end of file
编写
预览
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论