Skip to navigation

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

class stanza.plotter.backends.inline.InlineBackend

Display live-updating plots directly in notebook cells.

start() -> None

Initialize Bokeh notebook output.

stop() -> None

Clean up resources.

create_figure(
name: str,
x_label: str,
y_label: str,
plot_type: str = 'line',
z_label: str | None = None,
cell_size: tuple[float, float] | None = None
) -> None

Create a new plot configuration.

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

Add data to plot and display/update it.

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