(config)
return configurator_service
Set the JupyterHub Configurator service
Set the JupyterHub Configurator service
Set the JupyterHub Configurator service
def set_configurator(config):
    """
    Set the JupyterHub Configurator service
    """
    HERE = os.path.abspath(os.path.dirname(__file__))
    configurator_cmd = [
        sys.executable,
        "-m",
        "jupyterhub_configurator.app",
        f"--Configurator.config_file={HERE}/jupyterhub_configurator_config.py",
    ]
    configurator_service = {
        "name": "configurator",
        "url": "http://127.0.0.1:10101",
        "command": configurator_cmd,
    }

    return configurator_service
def set_configurator ( config ) : HERE = os . path . abspath ( os . path . dirname ( __file__ ) ) configurator_cmd = [ sys . executable , "-m" , "jupyterhub_configurator.app" , f"--Configurator.config_file={HERE}/jupyterhub_configurator_config.py" , ] configurator_service = { "name" : "configurator" , "url" : "http://127.0.0.1:10101" , "command" : configurator_cmd , } return configurator_service