Hi,
I am building a dashboard visualization with bokeh 0.9.2 and a flask server.
Currently I am struggling with updating glyph style attributes from JS callback code.
Say I want to update a segment color or alpha from a JS callback of a slider widget.
I have now this:
segment = Segment(…)
alpha_cb = Callback(args=dict(segment=segment), code="""
new_alpha = cb_obj.get(‘value’)
alpha = segment.get(‘line_alpha’)
alpha[‘value’] = new_alpha
segment.set(‘line_alpha’, alpha)
segment.trigger(‘change’)
“”"
alpha_slider = Slider(…, callback=alpha_cb)
I can see the property getting updated through inspector but the segment alpha (or color, similarly) never gets redrawn with the new styling.
What am I doing wrong ?
Thanks in advance and keep up the good work !
Miguel

