Fixed memoization bug when using generator in DynamicMap
@@ -848,6 +848,7 @@ class DynamicMap(HoloMap):
args = ()
else:
kwargs = dict(flattened)
+ if not isinstance(self.callback, Generator):
kwargs['memoization_hash'] = hash_items
with dynamicmap_memoization(self.callback, self.streams):
