Skip to content

Commit

Permalink
fix column events (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximlt committed May 31, 2024
1 parent 3fee226 commit 028343a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions jupyter_bokeh/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,15 +151,15 @@ def _sync_model(self, _model: BokehModel, content: dict[str, Any], _buffers: lis
for cb in model._callbacks.get(attr, []):
cb(attr, old, new)
elif kind == "ColumnsStreamed":
model = content["model"]
data = content["data"]
rollover = content["rollover"]
model = event["model"]
data = event["data"]
rollover = event["rollover"]

assert isinstance(model, ColumnDataSource)
model._stream(data, rollover, setter=setter)
elif kind == "ColumnsPatched":
model = content["model"]
patches = content["data"]
model = event["model"]
patches = event["patches"]

assert isinstance(model, ColumnDataSource)
model.patch(patches, setter=setter)
Expand Down

0 comments on commit 028343a

Please sign in to comment.