☰Read-only archive⌕
Looking for help with Bokeh?

This is a read-only archive. Ask questions and join the conversation on GitHub.

Visit Community Support on GitHub →
Archived discussions · Captured October 28, 2026

Interactive Bokeh Viz for STUMPY

Showcase
Sean_Law
Sean_Law

Hi, all! Thank you for all that you do. As a long time user, I really love Bokeh!

I had developed a bokeh viz a few years ago to help identify patterns within time series data using the STUMPY package. I finally managed to find some time and figured out how to serve the app on Heroku:

http://stumpy-live-demo.herokuapp.com/demo

At the top is a time series that contains a single reference subsequence that roughly repeats itself once. In the middle is something called the “matrix profile” which essentially is a plot of distances showing how far (by z-normalized Euclidean distance) any subsequence is to its nearest neighbor (i.e., how similar is the highlighted, green window to its closest match (colored in grey) along the time series). Finally, the “pattern overlay” simply shows the pattern and the match overlaid on top of each other and zoomed in to demonstrate where they are similar/different. The large number corresponds to the distance between the reference window (green) and its nearest neighbor (grey). Essentially, the global minima within the matrix profile gives you the best subsequence matches while the global maxima within the matrix profile identifies the outlier (where there is no good match for).

Additionally, the play button/slider allows you to control which subsequence (or reference window) to highlight and focus on. So, as you move the green reference window from left to right, notice that its nearest neighbor (grey) can come before or after the green box (i.e., your best match can exist in the future OR in the past). The Green vertical line helps to visually align the reference window to the precise value of the matrix profile.

⌁   Link to post
Sean_Law
Sean_Law

Yes, that would be great! You can find me at @seanmylaw and the STUMPY handle is @stumpy_dev. Full disclosure, I am the creator and core maintainer of the STUMPY library. Thank you!

⌁   Link to post
Michael_Li
Michael_Li

Thank you so much. No this is great, this is exactly what I needed. to visualize the my matrix profile. On the m value, I changed self.m = 50 but seems not working, is there anything else i need to change?

⌁   Link to post

End of archived discussion · Replies are disabled