STANDARD MODEL OF PARTICLE PHYSICS
WITH BOKEH

Everyone likes a good plot – looking at one or making one (or at least they should, if you ask me). Making a good plot is not an easy job so there is an effort to educate and extend the ways we can represent data in a much better way that is also aesthetically appealing (amongst other things). Over the past years, a great effort was made so we are able to not only make great plots but also make them interactive.

There are some super cool libraries out there, one of them being Bokeh. I’ve been playing with it for some time now but never actually made something I wanted to share publicly. Until now. Not saying this plot is beautiful or something extraordinary but I kinda like it and damn, my partner and I spent some time working on it. It is/was not easy as the features I needed are not yet developed in Bokeh (they are working on it) so we had to somehow go around the problem. The idea came to me as I wanted to play around with Bokeh+make something cool+something physics related. Plus I wanted to “code for fun with my partner”. I settled on the idea of making an interactive table for the Standard Model of Particle Physics (SM) (just like there is an interactive PSE table) and asked Matthijs to join me and help with the code. So here it is. It can be improved, of course. I cannot wait for the LaTeX to be implemented (update: it is now implemented so thank you to the Bokeh team!) into the library so we can truly utilize Bokeh in physics. Until then, feel free to copy the code, extend it or give comments on how you think it can be improved. The source code can be found on my GitHub repository. Just like the interactive map of Europe, the code can be directly embedded into a webpage and does not need deployment.

Hover over the elementary particle for more information.

Bokeh Plot