Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Guides building interactive browser-based research visualizations with Bokeh Python, covering standalone HTML and live server apps.
Use this skill ↓92% 88%−4 ptsof test cases passed
Passed 21 of 24 test cases with the skill, and 22 of 24 without it.
3 of 3 safety checks passed
Not used yet
Bokeh is a Python library for creating interactive visualizations for modern web browsers, with over 20K stars on GitHub. Developed and maintained by NumFocus, Bokeh generates standalone HTML documents or serves live interactive applications. Its architecture renders graphics in the browser using BokehJS, meaning the resulting visualizations are portable and can be shared as static HTML files without requiring Python on the viewer's end.
For researchers, Bokeh offers a unique advantage: its server-backed interactive applications allow real-time data exploration during analysis. Unlike static plotting libraries, Bokeh lets researchers build tools where they can brush-select data points, link multiple views of the same dataset, and stream live data from instruments or simulations. This makes it invaluable for exploratory data analysis in laboratory and computational research settings.
Bokeh provides multiple levels of API access. The high-level bokeh.plotting interface is comparable in convenience to matplotlib, while the low-level bokeh.models interface gives fine-grained control over every visual element. The library also integrates with HoloViews and Panel for building complex dashboards with minimal code.
# Install bokeh
# pip install bokeh
from bokeh.plotting import figure, show, output_file, output_notebook
from bokeh.models import ColumnDataSource, HoverTool
import numpy as np
import pandas as pd
# For Jupyter notebooks
output_notebook()
# For standalone HTML files
output_file("research_figure.html")
from bokeh.plotting import figure, show
from bokeh.models import ColumnDataSource, HoverTool
# Prepare data
data = pd.DataFrame({
'sample_id': [f'S{i:03d}' for i in range(100)],
'measurement_a': np.random.normal(5, 1.5, 100),
Next to this one in the catalogue, plus more from the same author.