Attempt to fix
Previously, an empty events log would throw an error on the Bokeh events page.
@@ -536,6 +536,7 @@ class Events(DashboardComponent):
with log_errors():
log = self.scheduler.events[self.name]
n = self.scheduler.event_counts[self.name] - self.last
+ if log:
log = [log[-i] for i in range(1, n + 1)]
self.last = self.scheduler.event_counts[self.name]
