First steps

Installing Bokeh

Bokeh is officially supported and tested on Python 3.6 and above (CPython).

You can install Bokeh with either conda or pip:

Installing with conda

Use this command to install Bokeh:

conda install bokeh

Conda requires either Anaconda or Miniconda to be installed on your system.

Installing with pip

Use this command to install Bokeh:

pip install bokeh

For more detailed information on installing and potential problems you might encounter, go to the Installation details section.

First steps guides

Follow these guides to quickly learn about the most important features and capabilities of Bokeh.

The first steps guides are for anybody who is new to Bokeh. The only prerequisites for using these guides are a basic understanding of Python and a working installation of Bokeh.

The first steps guides include lots of examples that you can copy to your development environment. There are also many links to the more in-depth resources of the user guide and reference guide in case you want to learn more about any of the topics covered in the first steps guides.

Creating a simple line chart plot

A line chart

Adding and customizing renderers

Several glyphs in one chart

Adding legends, text, and annotations

A chart with a legend

Customizing your plot

A chart with a tootip

Vectorizing glyph properties

A chart with different colors

Combining plots

Three charts combined into one element

Displaying and exporting

Screenshot of a Bokeh plot in a Jupyter notebook

Providing and filtering data

Two charts with different subsets of data

Using widgets

Screenshot of a Bokeh server app