Skip to content

Commit d79512f

Browse files
committed
set the DynamicMap.cache_size = 1
1 parent 2141571 commit d79512f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

adaptive/learner/balancing_learner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ def plot_function(*args):
274274

275275
dm = hv.DynamicMap(plot_function, kdims=list(d.keys()))
276276
dm = dm.redim.values(**d)
277+
dm.cache_size = 1
277278

278279
if dynamic:
279280
# XXX: change when https://github.com/pyviz/holoviews/issues/3637

adaptive/notebook_integration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ def plot_generator():
136136

137137
streams = [hv.streams.Stream.define("Next")()]
138138
dm = hv.DynamicMap(plot_generator(), streams=streams)
139+
dm.cache_size = 1
139140

140141
if normalize:
141142
# XXX: change when https://github.com/pyviz/holoviews/issues/3637

0 commit comments

Comments
 (0)