5.8 Widgets

Widgets are interactive controls that can be added to Bokeh applications to provide a front end user interface to a visualization. They can drive new computations, update plots, and connect to other programmatic functionality.

Widgets can also be used without the Bokeh server in standalone HTML documents through the browser’s Javascript runtime.

1. Button

from bokeh.layouts import column  # to grid plot graphs 
from bokeh.models import Button

button1 = Button(label="Success", button_type="success")
button2 = Button(label="Primary", button_type="primary")
button3 = Button(label="Warning", button_type="warning")
show(column(button1,button2,button3))

2. Select

3. Checkbox

4. Color Picker

5. RadioButton

6. Text Input

7. Slider and Range

Last updated

Was this helpful?