forked from cassinyio/SwarmSpawner
-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathjupyter_config_basic.py
More file actions
32 lines (24 loc) · 866 Bytes
/
jupyter_config_basic.py
File metadata and controls
32 lines (24 loc) · 866 Bytes
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
# Configuration file for jupyterhub.
import os
c = get_config()
c.Application.log_level = "DEBUG"
c.JupyterHub.spawner_class = "jhub.SwarmSpawner"
c.JupyterHub.authenticator_class = "jhubauthenticators.DummyAuthenticator"
c.DummyAuthenticator.password = "password"
c.JupyterHub.ip = "0.0.0.0"
c.JupyterHub.hub_ip = "0.0.0.0"
# First pulls can be really slow, so let's give it a big timeout
c.SwarmSpawner.start_timeout = 60 * 5
c.SwarmSpawner.notebook_dir = "~/work"
c.SwarmSpawner.jupyterhub_service_name = "jhub-swarmspawner_jupyterhub"
c.SwarmSpawner.networks = ["jupyterhub_default"]
c.SwarmSpawner.images = [
{"image": "ucphhpc/base-notebook:latest", "name": "Python Notebook"}
]
c.SwarmSpawner.container_spec = {
"args": [
"/usr/local/bin/start-singleuser.sh",
"--ServerApp.ip=0.0.0.0",
"--ServerApp.port=8888",
]
}