Skip to content

Commit b7623da

Browse files
committed
fix live_plot
See holoviz/holoviews#3564 and #166
1 parent a9bb7f6 commit b7623da

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

adaptive/notebook_integration.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -132,11 +132,13 @@ def plot_generator():
132132
# off a thread (and learner is not threadsafe) or block the kernel.
133133

134134
async def updater():
135+
event = lambda: hv.streams.Stream.trigger(dm.streams) # XXX: used to be dm.event()
136+
# see https://github.com/pyviz/holoviews/issues/3564
135137
try:
136138
while not runner.task.done():
137-
dm.event()
139+
event()
138140
await asyncio.sleep(update_interval)
139-
dm.event() # fire off one last update before we die
141+
event() # fire off one last update before we die
140142
finally:
141143
if active_plotting_tasks[name] is asyncio.Task.current_task():
142144
active_plotting_tasks.pop(name, None)

0 commit comments

Comments
 (0)