Jupyter Bokeh

4.0.5 · active · verified Thu Apr 16

Jupyter Bokeh is a Jupyter extension that enables Bokeh plots to render interactively within Jupyter notebooks and JupyterLab environments. It acts as a bridge, ensuring that Bokeh's rich interactive visualizations work seamlessly. The current version is 4.0.5, and it follows Bokeh's release cadence, typically updating to support new Bokeh features and Jupyter environments.

Common errors

Warnings

Install

Imports

Quickstart

After installing `jupyter-bokeh`, Bokeh plots automatically render interactively in Jupyter environments. Simply create a Bokeh plot using `bokeh.plotting` and call `show()`.

from bokeh.plotting import figure, show

# Create a new plot with a title and axis labels
p = figure(title="My First Bokeh Plot", x_axis_label='x', y_axis_label='y')

# Add a circle renderer with size, color, and alpha
p.circle([1, 2, 3, 4, 5], [6, 7, 2, 4, 5], size=10, color="navy", alpha=0.5)

# Show the results in the notebook
show(p)

view raw JSON →