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
Accordioncards by theirsectiontag.- Parameters:
provider (FigureProvider) – The
FigureProviderto render.subject (Any) – Subject to bind (operations);
Noneuses the held subject.
- Returns:
An
ipywidgets.Widgetready to display in a Jupyter cell.- Return type:
Any