Process¶
Module: jupyterlab_server.process¶
JupyterLab Server process handler
-
class
jupyterlab_server.process.Process(cmd, logger=None, cwd=None, kill_event=None, env=None, quiet=False)¶ A wrapper for a child process.
-
terminate()¶ Terminate the process and return the exit code.
-
wait()¶ Wait for the process to finish.
- Returns
- The process exit code.
-
wait_async()¶ Asynchronously wait for the process to finish.
-
-
class
jupyterlab_server.process.WatchHelper(cmd, startup_regex, logger=None, cwd=None, kill_event=None, env=None)¶ A process helper for a watch process.
-
terminate()¶ Terminate the process.
-
-
jupyterlab_server.process.which(command, env=None)¶ Get the full path to a command.
- Parameters
- command: str
The command name or path.
- env: dict, optional
The environment variables, defaults to os.environ.
Module: jupyterlab_server.process_app¶
A lab app that runs a sub process for a demo or a test.
ProcessApp¶
-
class
jupyterlab_server.process_app.ProcessApp(**kwargs)¶ A jupyterlab app that runs a separate process and exits on completion.
-
answer_yesc.ProcessApp.answer_yes = Bool(False)¶ Answer yes to any prompts.
-
app_namec.ProcessApp.app_name = Unicode('')¶ The name of the application.
-
app_namespacec.ProcessApp.app_namespace = Unicode('')¶ The namespace of the application.
-
app_settings_dirc.ProcessApp.app_settings_dir = Unicode('')¶ The application settings directory.
-
app_urlc.ProcessApp.app_url = Unicode('/lab')¶ The url path for the application.
-
app_versionc.ProcessApp.app_version = Unicode('')¶ The version of the application.
-
cache_filesc.ProcessApp.cache_files = Bool(True)¶ Whether to cache files on the server. This should be True except in dev mode.
-
config_filec.ProcessApp.config_file = Unicode('')¶ Full path of a config file.
-
config_file_namec.ProcessApp.config_file_name = Unicode('')¶ Specify a config file to load.
-
extra_labextensions_pathc.ProcessApp.extra_labextensions_path = List()¶ Extra paths to look for federated JupyterLab extensions
-
generate_configc.ProcessApp.generate_config = Bool(False)¶ Generate default config file.
-
handlersc.ProcessApp.handlers = List()¶ Handlers appended to the server.
-
jinja2_optionsc.ProcessApp.jinja2_options = Dict()¶ Options to pass to the jinja2 environment for this
-
labextensions_pathc.ProcessApp.labextensions_path = List()¶ The standard paths to look in for federated JupyterLab extensions
-
labextensions_urlc.ProcessApp.labextensions_url = Unicode('')¶ The url for federated JupyterLab extensions
-
listings_urlc.ProcessApp.listings_url = Unicode('')¶ The listings url.
-
log_datefmtc.ProcessApp.log_datefmt = Unicode('%Y-%m-%d %H:%M:%S')¶ The date format used by logging formatters for %(asctime)s
-
log_formatc.ProcessApp.log_format = Unicode('[%(name)s]%(highlevel)s %(message)s')¶ The Logging format template
-
log_levelc.ProcessApp.log_level = Enum(30)¶ Set the log level by value or name.
-
schemas_dirc.ProcessApp.schemas_dir = Unicode('')¶ The optional location of the settings schemas directory. If given, a handler will be added for settings.
-
settingsc.ProcessApp.settings = Dict()¶ Settings that will passed to the server.
-
settings_urlc.ProcessApp.settings_url = Unicode('')¶ The url path of the settings handler.
-
show_configc.ProcessApp.show_config = Bool(False)¶ Instead of starting the Application, dump configuration to stdout
-
show_config_jsonc.ProcessApp.show_config_json = Bool(False)¶ Instead of starting the Application, dump configuration to stdout (as JSON)
-
static_dirc.ProcessApp.static_dir = Unicode('')¶ The optional location of local static files. If given, a static file handler will be added.
-
static_pathsc.ProcessApp.static_paths = List()¶ paths to search for serving static files.
This allows adding javascript/css to be available from the notebook server machine, or overriding individual files in the IPython
-
static_url_prefixc.ProcessApp.static_url_prefix = Unicode('')¶ Url where the static assets for the extension are served.
-
template_pathsc.ProcessApp.template_paths = List()¶ Paths to search for serving jinja templates.
Can be used to override templates from notebook.templates.
-
templates_dirc.ProcessApp.templates_dir = Unicode('')¶ The application templates directory.
-
themes_dirc.ProcessApp.themes_dir = Unicode('')¶ The optional location of the themes directory. If given, a handler will be added for themes.
-
themes_urlc.ProcessApp.themes_url = Unicode('')¶ The theme url.
-
translations_api_urlc.ProcessApp.translations_api_url = Unicode('')¶ The url path of the translations handler.
-
tree_urlc.ProcessApp.tree_url = Unicode('')¶ The url path of the tree handler.
-
user_settings_dirc.ProcessApp.user_settings_dir = Unicode('')¶ The optional location of the user settings directory.
-
workspaces_api_urlc.ProcessApp.workspaces_api_url = Unicode('')¶ The url path of the workspaces API.
-
workspaces_dirc.ProcessApp.workspaces_dir = Unicode('')¶ The optional location of the saved workspaces directory. If given, a handler will be added for workspaces.
-