stanza.plotter.backends.server
Server-based plotting backend for live visualization in browser.
Runs a Bokeh server in a background thread, streams data updates via WebSocket. Works from any environment: scripts, notebooks, or interactive sessions.
Module Contents
Classes
Data
logger
API
Value: getLogger(...)
Live plotting in browser via Bokeh server.
Runs embedded server in background thread. Server dies when parent process exits.
Start Bokeh server.
Parameters:
If True, blocks until server is stopped (for persistent mode).
Stop the Bokeh server and remove from active servers registry.
Reset the document, clearing all plots and data sources.
This allows reusing the same server instance across multiple sessions.
Register a new plot. Created when browser connects.
Create plot based on spec.
Create 1D line plot.
Create 2D heatmap with rect glyph and linear color mapping.
Add data to plot. Buffers if browser not yet connected.

