Another noob question…
I’d like to change a text annotation (Bokeh.models.Label) from within a callback. I’ve tried all sorts of options but none of them work. My latest guess was to define the label’s string as a variable, put that variable into a ColumnDataSource, and then retrieve and modify it from the callback. No luck. Any suggestions?
data = {‘s’ : [‘hello world’]}
citation = Label(x=0, y=0,text=data[‘s’][0] )
[within callback]
var data = source.data
data[‘s’][0] = “hi”
source.change.emit()
Any lines of code I place before or after those lines work fine, so I know its getting to my code, but somehow this won’t update the text label.
any thoughts? Thanks again.

