I want to use a text input widget in a jupyter notebook with autocompletion. I therefore used AutocompleteInput()
from bokeh.models.widgets.inputs
.
from bokeh.models.widgets.inputs import AutocompleteInput
from bokeh.io import output_notebook
from bokeh.plotting import show
output_notebook()
txt_input = AutocompleteInput(completions=['val1', 'val2'])
show(txt_input)
Displaying the widget and autocompletion works fine, but how can I access the value of the input widget upon change? txt_input.value
only returns the default value (an empty string).