interaction_multiselect.py — Anaconda Enterprise 4.4 documentation

Anaconda Enterprise: Documentation

# interaction_multiselect.py

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

    output_file("multi_select.html")

    multi_select = MultiSelect(title="Option:", value=["foo", "quux"],
                               options=[("foo", "Foo"), ("bar", "BAR"), ("baz", "bAz"), ("quux", "quux")])

    show(widgetbox(multi_select))