Visualizing Data with Python’s Bokeh Package and Jupyter Notebook
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
- Getting Started with a Line Graph
- Importing Data from CSV
- Plotting Data with a Horizontal Bar Chart
- Adding Bokeh Tools
- Import ColumnDataSource
- Import HoverTool
- Import factor_cmap
- 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…