Skip to content
Browse files

Dynamic operations support stream instances

  • Loading branch information...
Philipp Rudiger Philipp Rudiger
Philipp Rudiger authored and Philipp Rudiger committed Oct 5, 2016
1 parent a142454 commit 5e7959634ce6d94348ddfcdd6c3f75346647420d
Showing with 9 additions and 3 deletions.
  1. +9 −3 holoviews/
@@ -1,10 +1,12 @@
import inspect

import param

from .core import DynamicMap, ViewableElement
from .core.operation import ElementOperation
from .core.util import Aliases
from .core import util

from .streams import Stream

class Dynamic(param.ParameterizedFunction):
@@ -36,8 +38,12 @@ def __call__(self, map_obj, **params):
dmap = self._make_dynamic(map_obj, callback)
if isinstance(self.p.operation, ElementOperation):
streams = []
for s in self.p.streams:
stream = s()
for stream in self.p.streams:
if inspect.isclass(stream) and issubclass(stream, Stream):
stream = stream()
elif not isinstance(stream, Stream):
raise ValueError('Stream must only contain Stream '
'classes or instances')
stream.update(**{k: self.p.operation.p.get(k) for k, v in

0 comments on commit 5e79596

Please sign in to comment.
You can’t perform that action at this time.