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
: whybokeh
is very competitiveInteractivePlotting.ipynb
: how to perform interactions withbokeh
CustomExample1.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 purepython
format only given its large size. To visualize its output click here. - many great examples by the active
bokeh
community: