Skip to content

Commit

Permalink
quick fix plot update panel app for some OS
Browse files Browse the repository at this point in the history
  • Loading branch information
Marsolo1 committed Mar 15, 2024
1 parent cc48ed6 commit 7eeb2dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vivarium/interface/panel_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,9 @@ def create_app(self):
return app

def set_callbacks(self):
# putting directly the slider value causes bugs on some OS
self.pcb_plot = pn.state.add_periodic_callback(self.update_plot_cb,
self.update_timestep.value)
self.update_timestep.value or 0)
self.entity_toggle.param.watch(self.entity_toggle_cb, "value")
self.start_toggle.param.watch(self.start_toggle_cb, "value")
self.update_switch.param.watch(self.update_switch_cb, "value")
Expand Down

0 comments on commit 7eeb2dd

Please sign in to comment.