Here is a more complete example:
print " Button Group State: " +str(button_group.active)
button_group = RadioButtonGroup(
labels=["State 1", "State 2"], active=0)
# open a session to keep our local document in sync with server
session = push_session(curdoc())
session.show() # open the document in a browser
session.loop_until_closed() # run forever
This is in a bokeh server and there is a lot of other things going on but this is my minimal example.
On Tuesday, 8 March 2016 19:21:09 UTC-5, RedRaven wrote:
I’ve noticed an interesting problem. I have a callback that reads every 150ms. => callback(update(),150)
Inside this callback function I am reading a RadioButtonGroup => radiobuttongroup.active
It seems that i cannot read the button when the callback time is 150ms, I can only pick up the button state if the callback time is greater than 250ms.
Does anyone know about this limit? Can I speed up the button read?