ploteries.cli_interface.table_handler_hook

Classes

TableHandlerHook(data_store[, data_table_kwargs])

Implements the interface (methods render_empty_figures() and create_callbacks())) required by the 'ploteries launch' CLI to access the tables in a data store.

class ploteries.cli_interface.table_handler_hook.TableHandlerHook(data_store, data_table_kwargs={})

Implements the interface (methods render_empty_figures() and create_callbacks())) required by the ‘ploteries launch’ CLI to access the tables in a data store.

handler_class

alias of TableHandler

build_empty_html(figure_handler)

Builds empty figure with accompanying html.

classmethod encoded_class_name()

Replaces ‘.’ characters with ‘|’ characters in class paths to make them compatible with Dash element ids.

classmethod create_callbacks(app_callback: Callable, get_hook: Callable[[str], TableHandlerHook], callback_args: Dict[str, State | Input | Output])

Creates the pattern-matching callbacks below (arrow):

  • n_interval_input -> each table figure

This callbacks expect the following contents in the callback_args dictionary (besides interface_name_state, see create_callbacks()):

  • n_interval_input (Input): The Interval.n_intervals atttribute that that will trigger the auto-updates, e.g., Input('interval-component', 'n_intervals').

(See cli_interface.PloteriesLaunchInterface.create_callbacks() and abstract_hook.AbstractInterfaceHook.create_callbacks().)