forked from Quansight/qhub-jupyterhub-theme
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtest_jupyterhub_config.py
35 lines (29 loc) · 1.25 KB
/
test_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
# Copyright (c) Nebari Development Team.
# Distributed under the terms of the Modified BSD License.
from jupyterhub.auth import DummyAuthenticator
from jupyterhub.spawner import SimpleLocalProcessSpawner
from nebari_jupyterhub_theme import theme_extra_handlers, theme_template_paths
c.JupyterHub.authenticator_class = DummyAuthenticator
c.DummyAuthenticator.password = "test"
c.JupyterHub.spawner_class = SimpleLocalProcessSpawner
# Link static files along with templates
c.JupyterHub.extra_handlers = theme_extra_handlers
c.JupyterHub.template_paths = theme_template_paths
# nebari will control these as ways to customize the template
c.JupyterHub.template_vars = {
"hub_title": "Welcome to Nebari",
"hub_subtitle": "your open source data science platform",
"welcome": "Running in dev mode",
"logo": "/hub/custom/images/Nebari-Logo-Horizontal-Lockup-White-text.svg",
"primary_color": "#cb39ed",
"secondary_color": "#2bd1c5",
"accent_color": "#eda61d",
"text_color": "#1c1d26",
"h1_color": "#0f1015",
"h2_color": "#0f1015",
"navbar_text_color": "#E8E8E8",
"navbar_hover_color": "#20b1a8",
"navbar_color": "#1c1d26",
# "display_version": "True",
# "nebari_theme_extra_js_urls": ["https://google.com/nebari.js"],
}