Hello,
I am introducing myself to callbacks, and I have a simple example here that is giving a weird behavior to what I expected.
After launching the server, I select a point or many points, and the circles corrected update their radius. However, nothing happens to the line_width or color. However, if I select other points, those two changes take effect.
Why is that? I expected the three changes to happen at the same time.
Thanks in advance.
TOOLS = ["tap", 'poly_select','box_select', 'reset']
p = figure(title="Some Figure", tools=TOOLS)
source = ColumnDataSource(dict(x = [1, 2, 3, 4, 5, 6, 7, 8, 9],
y = [11, 12, 13, 15, 15, 11, 12, 11, 15]))
circle = p.circle(x='x', y='y', source=source)
def callback(attr, old, new):
print('here')
print(old, new)
circle.glyph.fill_color = 'green'
circle.glyph.radius = 3
circle.glyph.line_width = 2
source.selected.on_change('indices', callback)
curdoc().add_root(column(p))

