𝔖 Scriptorium
✦   LIBER   ✦

πŸ“

Hands-On Data Visualization with Bokeh: Interactive web plotting for Python using Bokeh

✍ Scribed by Kevin Jolly


Publisher
Packt Publishing
Tongue
English
Leaves
168
Category
Library

⬇  Acquire This Volume

No coin nor oath required. For personal study only.

✦ Synopsis


Learn how to create interactive and visually aesthetic plots using the Bokeh package in Python

Key Features

  • A step by step approach to creating interactive plots with Bokeh
  • Go from nstallation all the way to deploying your very own Bokeh application
  • Work with a real time datasets to practice and create your very own plots and applications

Book Description

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.

What you will learn

  • Installing Bokeh and understanding its key concepts
  • Creating plots using glyphs, the fundamental building blocks of Bokeh
  • Creating plots using different data structures like NumPy and Pandas
  • Using layouts and widgets to visually enhance your plots and add a layer of interactivity
  • Building and hosting applications on the Bokeh server
  • Creating advanced plots using spatial data

Who This Book Is For

This book is well suited for data scientists and data analysts who want to perform interactive data visualization on their web browsers using Bokeh. Some exposure to Python programming will be helpful, but prior experience with Bokeh is not required.

Table of Contents

  1. Bokeh installation and key concepts
  2. Plotting using glyphs
  3. Plotting with different data structures
  4. Using layouts for effective presentation
  5. Using annotations, widgets and visual attributes for visual enhancement
  6. Building and hosting applications using the Bokeh Server
  7. Advanced Plotting with Networks, Geo data, WebGL and Exporting plots
  8. The Bokeh Workflow: A case study

✦ Table of Contents


Cover
Title Page
Copyright and Credits
Dedication
Packt Upsell
Contributors
Table of Contents
Preface
Chapter 1: Bokeh Installation and Key Concepts
Technical requirements
The difference between static and interactive plotting
Installing the Bokeh library
Installing Bokeh using a Python distribution
Verifying your installation
When things go wrong
Key concepts and the building blocks of Bokeh
Plot outputs
Summary
Chapter 2: Plotting using Glyphs
Technical requirements
What are glyphs?
Plotting with glyphs
Creating line plots
Creating bar plots
Creating patch plots
Creating scatter plots
Customizing glyphs
Summary
Chapter 3: Plotting with different Data Structures
Technical requirements
Creating plots using NumPy arraysΒ 
Creating line plots using NumPy arrays
Creating scatter plots using NumPy arrays
Creating plots using pandas DataFrames
Creating a time series plot using a pandas DataFrame
Creating scatter plots using a pandas DataFrame
Creating plots with ColumnDataSourceΒ 
Creating a time series plot using the ColumnDataSource
Creating a scatter plot using the ColumnDataSource
Summary
Chapter 4: Using Layouts for Effective Presentation
Technical requirements
Creating multiple plots along the same row
Creating multiple plots in the same column
Creating multiple plots in a row and column
Creating multiple plots using a tabbed layout
Creating a robust grid layout
Linking multiple plots together
Summary
Chapter 5: Using Annotations, Widgets, and Visual Attributes for Visual Enhancement
Technical requirements
Creating annotations to convey supplemental information
Adding titles to plots
Adding legends to plots
Adding color maps to plots
Creating widgets to add interactivity to plots
Creating a button widget
Creating the checkbox widget
Creating a drop-down menu widget
Creating the radio button widget
Creating a slider widget
Creating a text input widget
Creating visual attributes to enhance style and interactivity
Attributes that add interactivity to the plot
Creating a hover tooltip
Creating selections
Attributes that enhance the visual style of the plot
Styling the titleΒ 
Styling the background
Styling the outline of the plot
Styling the labels
Summary
Chapter 6: Building and Hosting Applications Using the Bokeh Server
Technical requirements
Introduction to the Bokeh Server
Building a Bokeh application
Creating a single slider application
Creating a multi-slider application
Combining the slider application with a scatter plot
Combining the slider application with a line plot
Creating an application with the select widget
Creating an application with the button widget
Creating an application to select different columns
Introduction to deploying the Bokeh application
Summary
Chapter 7: Advanced Plotting with Networks, Geo Data, WebGL, and Exporting Plots
Technical requirements
Using Bokeh to visualize networks
Visualizing networks with straight paths
Visualizing networks with explicit paths
Visualizing geographic data with Bokeh
Using WebGL to improve performance
Exporting plots as PNG images
Summary
Chapter 8: The Bokeh Workflow – A Case Study
Technical requirements
Asking the right question
The exploratory data analysisΒ 
Creating an insightful visualization
Creating the base plot
Mapping tech stocks
Adding a hover tool
Improving performance using WebGL
Presenting your results
Summary
Other Books You May Enjoy
Index


πŸ“œ SIMILAR VOLUMES


Hands-On Data Visualization with Bokeh:
✍ Kevin Jolly πŸ“‚ Library πŸ“… 2018 πŸ› Packt Publishing 🌐 English

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 i

Hands-On Data Visualization with Bokeh:
✍ Kevin Jolly πŸ“‚ Library πŸ› Packt Publishing 🌐 English

<p><span>Learn how to create interactive and visually aesthetic plots using the Bokeh package in Python </span></p><h4><span>Key Features</span></h4><ul><li><span><span>A step by step approach to creating interactive plots with Bokeh</span></span></li><li><span><span>Go from nstallation all the way

Data Visualization with Python: Explorin
✍ Aleksei Starkov πŸ“‚ Library πŸ“… 2023 πŸ› BPB Online 🌐 English

Transforming data into actionable insights using Python. Description: Python is a popular programming language for data visualization due to its rich ecosystem of libraries and tools. If you're interested in delving into data visualization in Python, this book is an excellent resource to begin y

Hands-On Web Scraping with Python: Extra
✍ Anish Chapagain πŸ“‚ Library πŸ“… 2023 πŸ› Packt Publishing Pvt Ltd 🌐 English

Work through practical examples to unlock the full potential of web scraping with Python and gain valuable insights from high-quality data Key Features Build an initial portfolio of web scraping projects with detailed explanations Grasp Python programming fundamentals related to web scraping an

Hands-On Web Scraping with Python: Extra
✍ Anish Chapagain πŸ“‚ Library πŸ“… 2023 πŸ› Packt Publishing 🌐 English

<p><span>Work through practical examples to unlock the full potential of web scraping with Python and gain valuable insights from high-quality data</span></p><h4><span>Key Features</span></h4><ul><li><span><span>Build an initial portfolio of web scraping projects with detailed explanations</span></s