shyft.dashboard.examples.ts_viewer_background_data_renderer

How we like things to be

Classes

BackgroundDataRendererExample(thread_pool[, ...])

Init of base app

ExampleTsAdapterBackgroundData(...)

class shyft.dashboard.examples.ts_viewer_background_data_renderer.ExampleTsAdapterBackgroundData(unit_to_decorate, time_range)[source]

Bases: TsAdapter

Parameters:
  • unit_to_decorate (str | Unit)

  • time_range (UtcPeriod)

__init__(unit_to_decorate, time_range)[source]
Parameters:
  • unit_to_decorate (str | Unit)

  • time_range (UtcPeriod)

Return type:

None

__call__(*, time_axis, unit)[source]

Call self as a function.

Return type:

Quantity[TsVector]

class shyft.dashboard.examples.ts_viewer_background_data_renderer.BackgroundDataRendererExample(thread_pool, app_kwargs=None)[source]

Bases: AppBase

Init of base app

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

  • app_kwargs (Dict[str, Any] | None) – Optional keyword arguments provided to the app through the start_bokeh_apps methods

__init__(thread_pool, app_kwargs=None)[source]

Init of base app

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

  • app_kwargs (Dict[str, Any] | None) – 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, logger=None)[source]

This function returns the full page layout for the app

Parameters:
Return type:

LayoutDOM