base#

Widget provider protocol for filter-specific artifact visualizations.

Classes#

WidgetProvider

Protocol for filter-specific artifact visualization widgets.

Module Contents#

class physicsnemo_curator.dashboard.widgets.base.WidgetProvider[source]#

Bases: Protocol

Protocol for filter-specific artifact visualization widgets.

Implementations must declare name and filter_name class attributes and implement a panel() method that returns a Panel component.

panel(
artifact_paths: list[str],
selected_index: int | None = None,
) panel.viewable.Viewable[source]#

Return a Panel component visualizing the artifacts.

Parameters:
  • artifact_paths (list[str]) – Paths to artifact files produced by the filter.

  • selected_index (int or None) – Currently selected pipeline index, if any.

Returns:

A Panel component (pane, widget, row, column, etc.).

Return type:

pn.viewable.Viewable

filter_name: str#

The filter class name this widget handles (e.g. 'MeanFilter').

name: str#

Human-readable name for the widget.