shyft.dashboard.examples.ts_viewer_background_data_renderer

How we like things to be

Classes

BackgroundDataRendererExample(thread_pool[, ...])

ExampleTsAdapterBackgroundData(...)

class shyft.dashboard.examples.ts_viewer_background_data_renderer.ExampleTsAdapterBackgroundData(unit_to_decorate: str | ~pint.unit.build_unit_class.<locals>.Unit, time_range: ~shyft.time_series._time_series.UtcPeriod)[source]

Bases: TsAdapter

__init__(unit_to_decorate: str | ~pint.unit.build_unit_class.<locals>.Unit, time_range: ~shyft.time_series._time_series.UtcPeriod) None[source]
__call__(*, time_axis, unit) Quantity[TsVector][source]

Call self as a function.

class shyft.dashboard.examples.ts_viewer_background_data_renderer.BackgroundDataRendererExample(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

Parameters:
  • 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