Bokeh

Bokeh is a data visualization library that allows a developer to code in Python and output JavaScript charts and visuals in web browsers.

Bokeh logo on a dark background.

Why is Bokeh a useful library?

Web browsers are ideal clients for consuming interactive visualizations. However, libraries such as d3.js can be difficult to learn and time consuming to connect to your Python backend web app. Bokeh instead generates the JavaScript for your application while you write all your code in Python. The removal of context switching between the two programming languages can make it easier and faster to create charts and visualizations.

What do Bokeh visualizations look like?

Bokeh can create any type of custom graph or visualization. For example, here is a screenshot of a bar chart created with the figure plot:

Responsive Bokeh bar chart with 64 bars.

For more references, including interactive live demonstrations, check out these sites:

Bokeh resources

Bokeh is under heavy development ahead of the upcoming 1.0 release. Note that while all of the following tutorials are useful, it is possible some of the basic syntax will change as the library's API is not yet stable.

您还想了解有关 Python 和数据的其他信息?

告诉我有关标准关系数据库的信息。

这些 NoSQL 数据存储是什么时髦开发人员一直在谈论?

为什么 Python 是一种优秀的编程语言?

Sign up for a monthly email with Full Stack Python tutorials. No spam ever.