How we like things to be


DsViewHandleGenerator(plot, table, legend[, ...])

TsViewerExample(thread_pool[, app_kwargs])

class shyft.dashboard.examples.time_series_viewer.DsViewHandleGenerator(plot, table, legend, async_on=False)[source]

Bases: object

__init__(plot, table, legend, async_on=False)[source]
create_and_send_ds_view_handle() None[source]

Create a new ds view handle and send it

remove_ds_view_handle(names: List[str]) None[source]

Remove a specific ds view handle

class shyft.dashboard.examples.time_series_viewer.TsViewerExample(thread_pool, app_kwargs: Dict[str, Any] | None = None)[source]

Bases: AppBase

__init__(thread_pool, app_kwargs: Dict[str, Any] | None = None)[source]

Init of base app

  • thread_pool – Optional thread pool used for async calls within the app

  • app_kwargs – Optional keyword arguments provided to the app through the start_bokeh_apps methods

property name: str

This property returns the name of the app

get_layout(doc: Document, logger: LoggerBox | None = None) LayoutDOM[source]

This function returns the full page layout for the app