stanza.plotter.backends.inline

Inline plotting backend for Jupyter notebooks.

Uses jupyter_bokeh extension for reliable live updates in all notebook environments. Install: pip install jupyter_bokeh

Module Contents

Classes

NameDescription
InlineBackendDisplay live-updating plots directly in notebook cells.

API

1class stanza.plotter.backends.inline.InlineBackend

Display live-updating plots directly in notebook cells.

1start() -> None

Initialize Bokeh notebook output.

1stop() -> None

Clean up resources.

1create_figure(
2 name: str,
3 x_label: str,
4 y_label: str,
5 plot_type: str = 'line',
6 z_label: str | None = None,
7 cell_size: tuple[float, float] | None = None
8) -> None

Create a new plot configuration.

1stream_data(
2 name: str,
3 new_data: dict[str, typing.Any],
4 rollover: int | None = None
5) -> None

Add data to plot and display/update it.

First call displays the plot, subsequent calls update via ColumnDataSource.