Files
shellscripts/config/jupyterhub_config.yml
Your Name b00f025742 update
2024-11-12 00:07:46 +08:00

21 lines
1.0 KiB
YAML

c.JupyterHub.authenticator_class = 'jupyterhub.auth.PAMAuthenticator'
c.JupyterHub.ip = '0.0.0.0'
c.JupyterHub.port = 9000
#c.JupyterHub.logo_file = '/home/lyzeng/.jupyter/group_bg.png'
c.JupyterHub.page_title = 'JupyterHub Service'
c.Spawner.ip = '127.0.0.1'
c.Spawner.cmd = ['jupyter-labhub']
c.Spawner.default_url = '/lab'
c.PAMAuthenticator.encoding = 'utf8'
c.Authenticator.allowed_users = set()
c.LocalAuthenticator.create_system_users = True
c.LocalProcessSpawner.shell_cmd = ["bash", "-l", "-c"]
c.Authenticator.admin_users = set()
c.Spawner.args = ['--allow-root', "--KernelSpecManager.ensure_native_kernel=False", '--NotebookApp.allow_origin_pat=https://.*vscode-cdn\\.net', '--NotebookApp.iopub_data_rate_limit=10000000'] # 增加nglview、vscode的jupyterhub的插件的支持
c.JupyterHub.statsd_prefix = 'jupyterhub'
c.Spawner.notebook_dir = '~'
c.JupyterHub.shutdown_on_logout = False
c.PAMAuthenticator.open_sessions = False
c.Spawner.env_keep.append('ENV1')
c.Spawner.env_keep.append('ENV2')
c.Spawner.env_keep.append('LD_LIBRARY_PATH')