Bokeh Interactive Plots — ELI5

You know how a printed photo of a city just sits there, but Google Maps lets you zoom in, move around, and click on buildings to learn more? Bokeh does that same magic trick, but for charts and graphs.

Normal charts in Python are like printed photos — you look at them, and that’s it. You can’t zoom into the interesting part. You can’t hover over a dot to see what it represents. You can’t hide a line you don’t care about.

Bokeh makes charts that live in your web browser, just like a website. You can grab the chart and drag it around. You can scroll to zoom in. You can hover over a data point and a little tooltip pops up telling you exactly what that point means — like its name, its value, its date.

Imagine you’re a teacher with a chart showing test scores for 500 students. With a regular chart, it’s just a cloud of dots. With Bokeh, you can hover over any dot and see “Sarah, 92%, Math class.” You can zoom into just the top performers. You can click a button to show only science scores.

The cool part is that Bokeh creates all this interactivity using plain web technology — HTML and JavaScript — so anyone with a browser can use your chart without installing Python.

One thing to remember: Bokeh turns charts from something you stare at into something you explore — zoom, hover, click, filter — all in the browser with no extra software needed.

pythonbokehdata-visualizationinteractive

See Also