Anaconda Enterprise: Documentation

# layout_widgets.py

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

    output_file("layout_widgets.html")

    # create some widgets
    slider = Slider(start=0, end=10, value=1, step=.1, title="Slider")
    button_group = RadioButtonGroup(labels=["Option 1", "Option 2", "Option 3"], active=0)
    select = Select(title="Option:", value="foo", options=["foo", "bar", "baz", "quux"])
    button_1 = Button(label="Button 1")
    button_2 = Button(label="Button 2")

    # put the results in a row
    show(widgetbox(button_1, slider, button_group, select, button_2, width=300))