forked from 2i2c-org/default-hub-homepage
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjupyterhub_config.py
50 lines (44 loc) · 1.48 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
45
46
47
48
49
50
"""
jupyterhub_config purely used for testing changes to templates.
See README.md for information on how to test this out.
"""
import pathlib
from oauthenticator.generic import GenericOAuthenticator
from jupyterhub.spawner import SimpleLocalProcessSpawner
HERE = pathlib.Path(__file__).parent
# Add templates from our local checkout to the path JupyterHub searches
# This allows us to override any template present in upstream
# jupyterhub (https://github.com/jupyterhub/jupyterhub/tree/main/share/jupyterhub/templates)
# locally
c.JupyterHub.template_paths = [str(HERE / 'templates')]
# We use this so we can get a 'login' button, instead of a username / password
# field.
c.JupyterHub.authenticator_class = GenericOAuthenticator
# Variables that are passed through to templates!
c.JupyterHub.template_vars = {
'custom': {
"interface_selector": True,
"default_url": "/rstudio",
"extra_css": "ghg.css",
'org': {
'name': ' NASA Green House Gases Center',
'logo_url': 'https://jupyter.org/assets/nav_logo.svg',
'url': 'https://www.nasa.gov/emd/ghg',
},
'operated_by': {
'name': '2i2c',
'url': 'https://2i2c.org',
'custom_html': '',
},
'funded_by': {
'name': '',
'url': '',
'custom_html': '',
},
'designed_by': {
'name': 'Funding ',
'url': '',
'custom_html': '',
}
}
}