Bokeh
Bokeh is a Python interactive visualization library.
To use Bokeh, install the Bokeh PyPI package through the Libraries UI, and attach it to your cluster.
To display a Bokeh plot in Databricks:
-
Generate a plot following the instructions in the Bokeh documentation.
-
Generate an HTML file containing the data for the plot, for example by using Bokeh’s
file_html()
oroutput_file()
functions. -
Pass this HTML to the Databricks
displayHTML()
function.importantThe 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.