Bokeh

Interactive visualisation with bokeh
visualization
PYTHON
BASIC
HANDS-ON
by Tbx
27 March 2021
A quick tutorial to get started with one of the best interactive data visualisation in python.

What is Bokeh ?

The main libraries to perfom visualization with the python programming language are:

For quick visualisation and exploratory analysis it is usualy easier to use matplotlib and seaborn. These two libraries compared to Plotly and Bokeh are not build on javascript and therefore do not allow interactive plotting.

With Bokeh, you can create JavaScript-powered visualizations without having to write javascript, it's the ideal candidates to create beautiful charts for a report or dashboard when interactive and dynamic visualisation are required.

Getting started

  1. We assume you already have python>3.6 running on your machine. If you don't have it go ahead and install it using this tutorial .
  2. Bokeh must be installed on your machine.
  3. For this tutorial we will be using data from Transport of London, which is freely available on their website.
  4. Any issue, suggestion or question reach out to me.

Visualizing the data

Let's import the required function from bokeh

Line plots with Bokeh

Visualize the volume of exit on a given date over the day for three stations: Vauxhall, Brixton and Stockwell.


Conclusion

In this tutorial we learnt how to visualize data with an interactive visualization library Bokeh by using:
  • Pie chart
  • Heatmap
  • Line plot
  • Histogram
  • Barplot
🧬 Code can be found here.

References