phenotypic.sdk_.viz.notebook package#

Notebook (ipywidgets) rendering shell for the figure protocol.

Exposes build_notebook_dashboard(), used by phenotypic.abc_.FigureProvider.dash() when a provider’s figures declare ``Control``s. ipywidgets is imported lazily inside the builder.

phenotypic.sdk_.viz.notebook.build_notebook_dashboard(provider: FigureProvider, subject: Any = None) Any[source]#

Build an ipywidgets dashboard for provider’s figures.

One widget per unique control (deduped by identity); changing a control re-renders exactly the figures that reference it. Figures are grouped into collapsible Accordion cards by their section tag.

Parameters:
  • provider (FigureProvider) – The FigureProvider to render.

  • subject (Any) – Subject to bind (operations); None uses the held subject.

Returns:

An ipywidgets.Widget ready to display in a Jupyter cell.

Return type:

Any