sda.dashboard.callbacks.menu_actions#

Download Python Script Callbacks.


Callbacks for downloading Python scripts that reproduce the current dashboard state.

Classes#

PipelineState

Standardized pipeline state structure for script generation.

Functions#

register_download_callbacks(app[, test_name, verbose])

Register download callbacks for Python script generation and Excel file opening.

Module Contents#

class sda.dashboard.callbacks.menu_actions.PipelineState#

Standardized pipeline state structure for script generation.

test_name: str | List[str]#
selected_columns: List[str]#
applied_filters: Dict[str, List[Any]]#
plot_type: str | None#
plot_config: Dict[str, Any]#
timestamp: float#
shape: List[int]#
applied: bool#
classmethod from_meta(filtered_data_store, plot_config, filter_allocation_store=None)#

Create pipeline state from filtered data store and plot configuration.

sda.dashboard.callbacks.menu_actions.register_download_callbacks(app, test_name=None, verbose=False)#

Register download callbacks for Python script generation and Excel file opening.

Parameters:

app (dash.Dash) – The Dash application instance.