Bokeh

Interactive visualization library for web browsers. Bokeh targets large/streaming datasets and provides elegant web-based visualizations. Can generate standalone HTML files (no server needed) or use Bokeh Server for live streaming updates. Unlike Matplotlib (static) or Plotly (JS wrapper), Bokeh has a custom JavaScript rendering engine (BokehJS) that handles large datasets efficiently. Supports Python→JavaScript callbacks, real-time data streaming, and widgets without a Python server for simple cases.

Evaluated Mar 06, 2026 (0d ago) v3.x
Homepage ↗ Repo ↗ Developer Tools visualization python javascript interactive bokeh-server streaming open-source
⚙ Agent Friendliness
64
/ 100
Can an agent use this?
🔒 Security
75
/ 100
Is it safe for agents?
⚡ Reliability
79
/ 100
Does it work consistently?

Score Breakdown

⚙ Agent Friendliness

MCP Quality
--
Documentation
85
Error Messages
78
Auth Simplicity
90
Rate Limits
88

🔒 Security

TLS Enforcement
85
Auth Strength
68
Scope Granularity
62
Dep. Hygiene
85
Secret Handling
80

BSD open source. NumFOCUS governance. No built-in auth — deployment security is developer responsibility. Standalone HTML files contain no server-side security surface.

⚡ Reliability

Uptime/SLA
80
Version Stability
82
Breaking Changes
75
Error Recovery
78
AF Security Reliability

Best When

You need high-performance interactive browser visualizations with real-time streaming, fine-grained control over plot elements, or standalone HTML output.

Avoid When

You want easy dashboard building — use Panel or Streamlit which build on Bokeh. Avoid for static print output or 3D plots.

Use Cases

  • Create interactive charts with hover tooltips, zoom, pan, and linked brushing that run in pure HTML without a server backend
  • Stream real-time agent metrics data to live-updating browser plots using Bokeh Server and ColumnDataSource streaming
  • Build complex linked visualizations where selecting data in one chart highlights related data in other charts
  • Export agent-generated visualizations as standalone HTML files that include all JavaScript dependencies for sharing
  • Create geospatial visualizations with Bokeh's tile plot support for agent location and mapping data

Not For

  • Static publication-quality charts (PDFs, papers) — Matplotlib produces better print-ready figures
  • 3D visualizations — Bokeh is 2D only; use Plotly or PyVista for 3D
  • Teams wanting the easiest dashboard framework — Streamlit or Panel abstract Bokeh's complexity; use Panel on top of Bokeh for dashboards

Interface

REST API
No
GraphQL
No
gRPC
No
MCP Server
No
SDK
Yes
Webhooks
No

Authentication

Methods: none
OAuth: No Scopes: No

No auth for standalone HTML output or local Bokeh Server. Production Bokeh Server deployments require external auth layer. Session-based isolation for multi-user server deployments.

Pricing

Model: open_source
Free tier: Yes
Requires CC: No

Bokeh is BSD open source maintained by NumFOCUS. Free for all use. No commercial offering.

Agent Metadata

Pagination
none
Idempotent
Full
Retry Guidance
Not documented

Known Gotchas

  • Bokeh's figure object model is complex — agents generating programmatic plots must understand glyphs, renderers, data sources, and axes as distinct objects
  • ColumnDataSource streaming (stream() method) uses append-only semantics — agents must manage data retention manually to prevent unbounded memory growth in long-running streams
  • Bokeh's JavaScript callbacks (CustomJS) require JavaScript strings embedded in Python — agents generating dynamic callback logic must write/template JavaScript code
  • Standalone HTML export includes all Bokeh dependencies by default (CDN or inline) — large inline exports for offline use can be 5+ MB per HTML file
  • Bokeh Server requires a persistent Python process — horizontal scaling requires load balancer configuration; simpler tools (Streamlit) handle this transparently
  • BokehJS renders in a canvas/WebGL context — complex plots with many glyphs (>100K points) may exceed browser memory; use WebGL renderer mode for large datasets

Alternatives

Full Evaluation Report

Detailed scoring breakdown, competitive positioning, security analysis, and improvement recommendations for Bokeh.

$99

Scores are editorial opinions as of 2026-03-06.

5215
Packages Evaluated
26151
Need Evaluation
173
Need Re-evaluation
Community Powered