Hi,
Can someone please tell me how could the option selected in the ‘select’ widget be captured.
I tried the following and expected that when I change the selection in drop down menu, it should print the newly selected option. But it’s not happening.
from bokeh.models.widgets import Select
from bokeh.io import output_notebook, show, vform
from bokeh.models import CustomJS
output_notebook()
states=[‘VA’,‘MD’,‘SC’]
select = Select(title=“Select State:”, value=“VA”, options=states)
show(vform(select))
def call(attr,old,new):
print new
select.on_change(‘value’,select,call)
``
Regards,
Praveen
