Bokeh builds interactive plots, layouts, and data apps in Python that render in modern browsers, with streaming updates, widgets, and optional server callbacks.
Overview
Bokeh is a Python visualization toolkit that targets interactive graphics in web browsers without requiring authors to write JavaScript by hand. High-level plotting helpers create lines, scatters, maps, and network views, while lower-level models expose layouts, annotations, themes, and extensions when finer control is needed.
Built-in tools support pan, zoom, hover, brushing, linked selection, and editable data columns. Data sources can stream or patch in place so dashboards update without reloading entire datasets, and some glyphs can leverage WebGL for larger series.
Outputs fit several workflows: inline display in Jupyter or JupyterLab, standalone HTML exports, embedded components on existing pages, or live applications backed by the Bokeh server. Server integrations allow Python callbacks when users interact with widgets, and the library can mount inside ASGI frameworks such as FastAPI, Starlette, or Django.
Downstream projects including Dask diagnostics, Panel, Mistic, and ArviZ rely on Bokeh for browser rendering or application infrastructure. Installation is available through common Python package managers.
Key features
- High- and low-level plotting APIs
- Pan, zoom, hover, and linked brushing
- Streaming and patched data sources
- Widgets and dashboard layouts
- Standalone HTML export
- Jupyter and JupyterLab integration
- Bokeh server with Python callbacks
- WebGL-accelerated glyphs
Use cases
- Exploratory charts inside notebooks
- Publishing self-contained HTML visuals
- Interactive dashboards with live data
- Geospatial and scientific plotting
- Embedding plots in Python web apps