I’m running into some weird behavior combining JS callbacks and
IndexFilter that I can’t figure out. Basically if I use
CustomJS to update the indices of an
IndexFilter to animate a single point, eventually at a high enough frame number the plot just stops updating. There aren’t any errors in the Chrome Inspector, and the exact frame at which the plot stops updating depends on how fast I drag the slider. It also only seems to trigger if there’s a single element in the filter indices — simply doubling the data with a
pd.concat before setting it as the source results in a “normal” animation.
Here’s an animated gif of what it looks like:
I’ve added the code and the data I’m using to make that plot to a Gist. If you download the data file to the same directory as the script it should work. I’m using Python 3.9.6 and Bokeh 2.3.3.
Is this a bug, or am I doing something wrong? If it’s the former I’d be happy to post an issue on the repo, but I figured I’d ask here first. Thanks!