Visualizing Data with Python’s Bokeh Package and Jupyter Notebook

David Allen
7 min readJun 13, 2019

This tutorial is based on the YouTube Video Python Data Visualization with Bokeh. The goal here is to provide documentation for myself as I’m starting to learn Bokeh. I’m hoping it’ll be useful for you as well.

One main difference between this tutorial and the video is that I’m going to use a jupyter notebook to execute my python.

Let’s dive in.

Table of Contents

  1. Getting Started with a Line Graph
  2. Importing Data from CSV
  3. Plotting Data with a Horizontal Bar Chart
  4. Adding Bokeh Tools
  5. Import ColumnDataSource
  6. Import HoverTool
  7. Import factor_cmap
  8. Add Legend

Step 1: Getting Started with a Line Graph

To get started I’m going to create a new directory to store these files in, spin up my python 3 environment, and then jump into a jupyter notebook.

I’m making the assumption that you’ve already installed Anaconda Navigator, have set up an environment to run Python3, and have installed Jupyter notebook.

If not, install Anaconda Navigator and perform these steps. Need help? Leave a…

--

--

David Allen

Documentation and tutorials on Python, Pandas, Jupyter Notebook, and Data Analysis.