Bokeh in action
These examples use Bokeh for data exploration, scientific models, financial analysis, image processing, and network science. Each one has working source code.
Jump to an example
- 01Vehicle efficiency explorerTransportation
- 02Terrain contour explorerGeospatial analysis
- 03Regional airport accessInfrastructure planning
- 04Seattle weather comparisonClimate science
- 05Streaming market simulatorFinance
- 06Task scheduling simulatorDistributed computing
- 07Nonlinear oscillator studioApplied mathematics
- 08Wave field explorerScientific computing
- 09Radio spectrum labSignal processing
- 10Research lineage explorerScholarly research
- 11Hubble image processingImage science
- 12Cellular automata simulatorComplex systems
Examples by topic
The gallery uses public datasets and computed models. Several examples also show how Bokeh works with NetworkX, Xarray, Numba, pandas, and scikit-image.
Vehicle efficiency explorer
Compare decades of vehicle design, then select any group to recompute its fuel-economy distribution and summary values.
- linked selection
- histogram
- filters
- hover
Terrain contour explorer
Compare ten dramatic modeled landforms, position an angled transect across filled contours, and read the linked elevation profile and terrain statistics.
- filled contours
- draggable transect
- linked profile
- NumPy
Regional airport access
Move among U.S. states and territories without filtering the national airport network, then compare an anchor's closest alternatives and regional reach.
- tile map
- tap selection
- nearest neighbors
- cumulative reach
- real data
Seattle weather comparison
Compare one year with Seattle observations from 2012 to 2015, including temperatures, rolling rainfall, wet days, and monthly totals.
- daily comparison
- rolling rainfall
- monthly heatmap
- event thresholds
Streaming market simulator
Generate an unlimited intraday OHLC stream, change its market regime, and watch volatility, drawdown, and MACD react to new bars and sudden shocks.
- OHLC
- streaming
- MACD
- session state
Task scheduling simulator
Follow a dependency graph as tasks become runnable, occupy workers, encounter delays, and stream into a compact execution timeline.
- dynamic graph
- task stream
- WebGL
- incremental updates
- session state
Nonlinear oscillator studio
Compare Duffing, van der Pol, driven pendulum, and Mathieu dynamics through traces, phase paths, and model-specific diagnostics.
- MathText
- simulation
- streaming
- session state
Wave field explorer
Recompute a two-dimensional field, inspect local values, and follow a movable cross-section through it.
- heatmap
- cross-section
- color mapping
- NumPy
- SciPy
Radio spectrum lab
Tune a receiver across generated telemetry, chirps, hopping channels, and crowded bands while Python streams filtered spectra and a scrolling spectrogram.
- spectrogram
- FFT
- streaming image
- NumPy
- SciPy
Research lineage explorer
Trace four landmark results back to their foundations and forward through the research they influenced.
- OpenAlex
- NetworkX
- citation paths
- linked timeline
- real data
Hubble image processing
Crop a coordinate-aware Hubble image and run compiled color, contrast, blur, edge, and sharpening filters.
- Xarray
- Numba
- image_rgba
- compiled filters
Cellular automata simulator
Seed and edit a colony, compare two Life-like rules from the same state, and detect still lifes and repeating oscillators.
- Game of Life
- rule comparison
- pattern editing
- cycle detection
Python callbacks on ASGI
Bokeh's ASGI adapter handles documents, static resources, sessions, and WebSockets. These examples run on Uvicorn, but the adapter can also sit inside another ASGI application.
Run locally
Clone, uv run, done.
With Git and uv installed, these commands create the locked environment and start the complete gallery.
git clone https://github.com/bokeh/demo.bokeh.org
cd demo.bokeh.org
uv run --locked uvicorn asgi:application
Open http://127.0.0.1:8000.