---
title: Bokeh
description: Learn how to use Bokeh, a Python interactive visualization library, with Databricks notebooks.
canonical_url: https://docs.databricks.com/aws/en/visualizations/bokeh
---

# Bokeh

[Bokeh](https://docs.bokeh.org/en/latest/) is a Python interactive visualization library.

To use Bokeh, install the Bokeh PyPI package through the [Install libraries](https://docs.databricks.com/aws/en/libraries/index.md) UI, and attach it to your cluster.

To display a Bokeh plot in Databricks:

1. Generate a plot following the instructions in the [Bokeh documentation](https://docs.bokeh.org/en/latest/docs/user_guide.html).
2. Generate an HTML file containing the data for the plot, for example by using Bokeh's `file_html()` or `output_file()` functions.
3. Pass this HTML to the Databricks `displayHTML()` function.

   > [!IMPORTANT]
   >
   > The maximum size for a notebook cell, both contents and output, is 20MB. Make sure that the size of the HTML you pass to the `displayHTML()` function does not exceed this value.

## Notebook example: Bokeh

The following notebook shows a Bokeh example.

#### bokeh demo notebook

[Get notebook](https://docs.databricks.com/notebooks/source/bokeh-demo.html)
