-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjupyterhub_config.py
44 lines (35 loc) · 1.22 KB
/
jupyterhub_config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
"""JupyterHub configuration for testing this service."""
import sys
# c.JupyterHub.log_level = "DEBUG"
c.JupyterHub.authenticator_class = "jupyterhub.auth.DummyAuthenticator"
# c.DummyAuthenticator.password = 'password'
c.Authenticator.admin_users = {"jovyan"}
c.Authenticator.allowed_users = {"jovyan", "marc"}
c.JupyterHub.redirect_to_server = False
c.JupyterHub.spawner_class = "jupyterhub.spawner.LocalProcessSpawner"
c.LocalProcessSpawner.notebook_dir = "/home/{username}"
c.Spawner.default_url = "/lab"
c.JupyterHub.services = [
{
"name": "report",
"url": "http://127.0.0.1:8888",
"command": [
sys.executable,
"-m",
"papermill_report",
"--debug",
"--PapermillReport.ip",
"127.0.0.1",
"--PapermillReport.port",
"8888",
"--PapermillReport.template_root_dir",
"/opt/ariadnext/reports/",
# Uncomment the two following options if you want to test the git case
# "--PapermillReport.template_git_url",
# "/tmp/papermill_report/",
# "--PapermillReport.template_dir",
# "examples"
],
# "oauth_no_confirm": True,
}
]