Skip to content

Commit

Permalink
Renamed Stream.interactive to linked
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr committed Mar 23, 2017
1 parent 5d54235 commit 522952a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion holoviews/plotting/bokeh/element.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ def _construct_callbacks(self):
streams = Stream.registry.get(id(source), [])
registry = Stream._callbacks['bokeh']
cb_classes |= {(registry[type(stream)], stream) for stream in streams
if type(stream) in registry and stream.interactive}
if type(stream) in registry and stream.linked}
cbs = []
sorted_cbs = sorted(cb_classes, key=lambda x: id(x[0]))
for cb, group in groupby(sorted_cbs, lambda x: x[0]):
Expand Down
9 changes: 6 additions & 3 deletions holoviews/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class Stream(param.Parameterized):
Depending on the plotting backend certain streams may interactively
subscribe to events and changes by the plotting backend. To disable
this behavior instantiate the Stream with interactive=False.
this behavior instantiate the Stream with linked=False.
"""

# Mapping from a source id to a list of streams
Expand Down Expand Up @@ -116,20 +116,23 @@ def trigger(cls, streams):


def __init__(self, preprocessors=[], source=None, subscribers=[],
interactive=True, **params):
linked=True, **params):
"""
Mapping allows multiple streams with similar event state to be
used by remapping parameter names.
Source is an optional argument specifying the HoloViews
datastructure that the stream receives events from, as supported
by the plotting backend.
Some streams are configured to automatically link to the source
plot, to disable this set linked=False
"""
self._source = source
self.subscribers = subscribers
self.preprocessors = preprocessors
self._hidden_subscribers = []
self.interactive = interactive
self.linked = linked

# The metadata may provide information about the currently
# active event, i.e. the source of the stream values may
Expand Down

0 comments on commit 522952a

Please sign in to comment.