For real-time dashboards, this version fixed a critical bug where stream() and patch() methods on ColumnDataSource would sometimes update the wrong indices, leading to visual artifacts.
source = ColumnDataSource(dict(x=[0], y=[0])) p = figure() p.circle(x="x", y="y", source=source)