bokeh.application.handlers.server_lifecycle

Bokeh Application Handler to look for Bokeh server lifecycle callbacks in a specified Python module.

class ServerLifecycleHandler(*args, **kwargs)[source]

Load a script which contains server lifecycle callbacks.

__init__(*args, **kwargs)[source]
Keyword Arguments:
 
  • filename (str) – path to a module to load lifecycle callbacks from
  • argv (list[str], optional) – a list of string arguments to use as sys.argv when the callback code is executed. (default: [])
url_path()[source]

The last path component for the basename of the path to the callback module.

error

If the handler fails, may contain a related error message.

error_detail

If the handler fails, may contain a traceback or other details.

failed

True if the lifecycle callbacks failed to execute