Book Image

Hands-On Data Visualization with Bokeh

By : Kevin Jolly
Book Image

Hands-On Data Visualization with Bokeh

By: Kevin Jolly

Overview of this book

Adding a layer of interactivity to your plots and converting these plots into applications hold immense value in the field of data science. The standard approach to adding interactivity would be to use paid software such as Tableau, but the Bokeh package in Python offers users a way to create both interactive and visually aesthetic plots for free. This book gets you up to speed with Bokeh - a popular Python library for interactive data visualization. The book starts out by helping you understand how Bokeh works internally and how you can set up and install the package in your local machine. You then use a real world data set which uses stock data from Kaggle to create interactive and visually stunning plots. You will also learn how to leverage Bokeh using some advanced concepts such as plotting with spatial and geo data. Finally you will use all the concepts that you have learned in the previous chapters to create your very own Bokeh application from scratch. By the end of the book you will be able to create your very own Bokeh application. You will have gone through a step by step process that starts with understanding what Bokeh actually is and ends with building your very own Bokeh application filled with interactive and visually aesthetic plots.
Table of Contents (10 chapters)

Using Bokeh to visualize networks

Networks help you visualize relationships between people and items. For example, a simple network can show you how people are related to each other. This is illustrated for you in the following diagram:

In this network, it is easy to see that Mary and Jon are friends, while Mary and Tim are coworkers. We can also see that Tim and Jon have no relationship at all. Such networks have powerful applications, especially in the field of social networks!

In this section, we are going to learn how to construct an interactive network using Bokeh. On a fundamental level, there are two ways to do this. The first is to construct and visualize these networks using the default straight lines to connect two nodes together, and the next is to construct and visualize these networks by defining a shape for the path that we choose.

...