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

@@ -19,12 +19,8 @@ setup(
'requests', 'requests',
'bcrypt', 'bcrypt',
'jupyterhub-traefik-proxy==0.2.*', 'jupyterhub-traefik-proxy==0.2.*',
'jupyterhub-configurator @ git+https://github.com/yuvipanda/jupyterhub-configurator@ecca97e016e9a939dd48c6c0e66c40e4e2951fa7',
], ],
entry_points={ entry_points={
'jupyterhub_configurator': [
'schema = tljh.schemas.tljh_configurator',
],
'console_scripts': [ 'console_scripts': [
'tljh-config = tljh.config:main', 'tljh-config = tljh.config:main',
] ]

View File

@@ -141,6 +141,7 @@ def ensure_jupyterhub_package(prefix):
"oauthenticator==0.10.0", "oauthenticator==0.10.0",
"jupyterhub-idle-culler==1.0", "jupyterhub-idle-culler==1.0",
"chardet==3.0.4", "chardet==3.0.4",
"git+https://github.com/yuvipanda/jupyterhub-configurator@317759e17c8e48de1b1352b836dac2a230536dba"
], ],
) )
traefik.ensure_traefik_binary(prefix) 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 tljh import configurer
from systemdspawner import SystemdSpawner from systemdspawner import SystemdSpawner
from traitlets import Dict, Unicode, List from traitlets import Dict, Unicode, List
from jupyterhub_configurator.mixins import ConfiguratorSpawnerMixin
class CustomSpawner(SystemdSpawner): class CustomSpawner(SystemdSpawner):
""" """