Skip to content

Commit edf8138

Browse files
committed
Fixes for Stream without source
1 parent 3f61439 commit edf8138

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

holoviews/plotting/bokeh/element.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -855,7 +855,7 @@ def model_changed(self, model):
855855
update on the backend.
856856
"""
857857
callbacks = [cb for cbs in self.traverse(lambda x: x.callbacks)
858-
for cb in cbs]
858+
for cb in cbs]
859859
stream_metadata = [stream._metadata for cb in callbacks
860860
for stream in cb.streams if stream._metadata]
861861
return any(md['id'] == model.ref['id'] for models in stream_metadata

holoviews/plotting/bokeh/plot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,8 @@ def _construct_callbacks(self):
161161
streams = Stream.registry.get(source, [])
162162
registry = Stream._callbacks['bokeh']
163163
cb_classes |= {(registry[type(stream)], stream) for stream in streams
164-
if type(stream) in registry and stream.linked}
164+
if type(stream) in registry and stream.linked
165+
and stream.source is not None}
165166
cbs = []
166167
sorted_cbs = sorted(cb_classes, key=lambda x: id(x[0]))
167168
for cb, group in groupby(sorted_cbs, lambda x: x[0]):

0 commit comments

Comments
 (0)