Move schema to configurator

This commit is contained in:
GeorgianaElena
2021-04-06 13:44:29 +03:00
parent c8f86833b7
commit 0e7c30296d
5 changed files with 2 additions and 31 deletions

View File

@@ -141,6 +141,7 @@ def ensure_jupyterhub_package(prefix):
"oauthenticator==0.10.0",
"jupyterhub-idle-culler==1.0",
"chardet==3.0.4",
"git+https://github.com/yuvipanda/jupyterhub-configurator@317759e17c8e48de1b1352b836dac2a230536dba"
],
)
traefik.ensure_traefik_binary(prefix)

View File

@@ -1,27 +0,0 @@
from jupyterhub_configurator.hooks import hookimpl
@hookimpl
def jupyterhub_configurator_fields():
return {
"schema.default_interface": {
"type": "string",
"traitlet": "Spawner.default_url",
"title": "Default User Interface",
"enum": ["/tree", "/lab", "/nteract"],
"default": "/tree",
"enumMetadata": {
"/tree": {
"title": "Classic Notebook",
"description": "The original single-document interface for creating Jupyter Notebooks.",
},
"/lab": {
"title": "JupyterLab",
"description": "A Powerful next generation notebook interface",
},
"/nteract": {
"title": "Nteract",
"description": "Nteract notebook interface",
},
},
}
}

View File

@@ -3,6 +3,7 @@ from tljh import user
from tljh import configurer
from systemdspawner import SystemdSpawner
from traitlets import Dict, Unicode, List
from jupyterhub_configurator.mixins import ConfiguratorSpawnerMixin
class CustomSpawner(SystemdSpawner):
"""