interaction_radio_button_group.py — Anaconda Enterprise 4.4 documentation

Anaconda Enterprise: Documentation

# interaction_radio_button_group.py

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

    output_file("radio_button_group.html")

    radio_button_group = RadioButtonGroup(
            labels=["Option 1", "Option 2", "Option 3"], active=0)

    show(widgetbox(radio_button_group))