Tutorial given at PyHEP21 on July 6th, 14:30 CEST.
Description: We discuss and justify the application of Python's Bokeh library to non-interactive and interactive visualization. A comparison between Bokeh and some widely used alternatives is made. We include a tutorial covering the key aspects necessary to create virtually any interactive plot needed in HEP, and provide custom examples and code.
The material includes three notebooks:
Motivation.ipynb: whybokehis very competitiveInteractivePlotting.ipynb: how to perform interactions withbokehCustomExample1.ipynb: example of exploratory data analysis
Plot embedding
bokeh plots can be easily embedded into websites (check the gh-pages branch):
- see the tutorial example here.
- an additional example (
CustomExample2.py, referring to astrophysical spectra generation) is provided in purepythonformat only given its large size. To visualize its output click here. - many great examples by the active
bokehcommunity: