interaction_checkbox_button_group.py — Anaconda Enterprise 4.4 documentation

Anaconda Enterprise: Documentation

# interaction_checkbox_button_group.py

    from bokeh.io import output_file, show
    from bokeh.layouts import widgetbox
    from bokeh.models.widgets import CheckboxButtonGroup

    output_file("checkbox_button_group.html")

    checkbox_button_group = CheckboxButtonGroup(
            labels=["Option 1", "Option 2", "Option 3"], active=[0, 1])

    show(widgetbox(checkbox_button_group))