mirror of
https://github.com/jupyterhub/the-littlest-jupyterhub.git
synced 2025-12-18 21:54:05 +08:00
Move schema to configurator
This commit is contained in:
4
setup.py
4
setup.py
@@ -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',
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -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):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user