Hands-On Data Visualization with Bokeh
Interactive web plotting for Python using Bokeh
Kevin Jolly
BIRMINGHAM - MUMBAI
Hands-On Data Visualization with Bokeh
Copyright 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Amey Varangaonkar
Acquisition Editor: Noyonika Das
Content Development Editor: Aditi Gour
Technical Editor: Jinesh Topiwala
Copy Editor: Safis Editing
Project Coordinator: Hardik Bhinde
Proofreader: Safis Editing
Indexer: Aishwarya Gangawane
Graphics: Jason Monteiro
Production Coordinator: Nilesh Mohite
First published: June 2018
Production reference: 1120618
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78913-540-4
www.packtpub.com
This book is dedicated to my grandfather, P.J Mathai whose knowledge
about the world sparked the flame of curiosity within me.
mapt.io
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
PacktPub.com
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and, as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details.
At www.PacktPub.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Contributors
About the author
As a formally educated data scientist with a masters degree in data science from the prestigious Kings College London, Kevin works as a data scientist with a digital healthcare startup - Connido Limited in London where he is primarily involved with building the descriptive, diagnostic and predictive analytic pipelines.
He is also the founder of LinearDataa leading online resource in the field of data science which has over 30,000 unique website hits.
About the reviewer
Zaim Awang, who is from Malaysia, has been an oil and gas engineer for more than 20 yearsbut a data scientist at heart for just as long. A graduate from the University of Texas in Austin, he used to work for Shell and other companies in different regions. He enjoys solving technical problems. His latest discovery is a new algorithm for pattern prediction that works much better than traditional deep learning for structured data. He is now leading a team at Invigour Energy developing AiSara (for solution approximation with robust algorithms). He welcomes contact at his twitter handle, @zaim_awang.
Packt is searching for authors like you
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insights with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Table of Contents
Preface
Bokeh is an open source, interactive, data visualization package in Python that allows users to create interactive and beautiful visualizations that are both statistically significant and aesthetically pleasing.
This book aims to provide you with the tools needed to get started with Bokeh and to create plots that can tell a story through interaction.
Who this book is for
This book is well suited for data scientists and data analysts who wish to perform interactive data visualization on their web browsers using the Bokeh library.
A basic knowledge of Python is required in order to understand the content of this book.
What this book covers
, Bokeh Installation and Key Concepts , looks at how to install Bokeh on your PC and how to understand the fundamental concepts that are needed to progress with the rest of the book.
, Plotting Using Glyphs , will teach you how to create visualizations using the building block of BokehGlyphs.
, Plotting with Different Data Structures , explains how to create visualizations using data structures that are found ubiquitously, such as the Pandas DataFrame and the NumPy array.
, Using Layouts for Effective Presentation , explores how to use layouts in order to enhance the aesthetic appeal of your visualizations.
, Using Annotations, Widgets, and Visual Attributes for Visual Enhancement , will teach you how to enhance your plot's interactivity as well as its aesthetics.
, Building and Hosting Applications on the Bokeh Server , goes through how to create and deploy applications that can host interactive visualizations.
, Advanced Plotting with Networks, Geo Data, WebGL, and Exporting Plots , dives into the advanced topics of Bokeh and sheds light on some of the ways in which you can enhance your interactive plotting experience.
, The Bokeh Workflow A Case Study , comprises a case study that will have you explore data and build an interactive visualization by following a workflow that is tailored for Bokeh!
To get the most out of this book
A basic knowledge of Python is essential. Knowledge of importing packages, and experience of working with NumPy, Pandas, and DataFrames, will help the reader get the most out of this book.
Download the example code files
You can download the example code files for this book from your account at www.packtpub.com. If you purchased this book elsewhere, you can visit www.packtpub.com/support and register to have the files emailed directly to you.