TapTool callbacks in new bokeh version (1.0.2)

Hello,

I’ve been using Bokeh for a little while now. I have been using the methodology outlined in this stackoverflow question to trigger a callback when a glyph is selected, using the Tap tool:

When I updated Bokeh from 0.12 to 1.0, my code stopped working. Could you tell me if the above methodology is now outdated?

-Rahul

There was some confusion and regressions around selections leading up to 1.0. For most use case you would want to use:

  source.selected.on_change('indices', function_source)

This kind of usage is now continuously maintained under integration tests.

Thanks,

Bryan

···

On Dec 11, 2018, at 16:51, [email protected] wrote:

Hello,

I've been using Bokeh for a little while now. I have been using the methodology outlined in this stackoverflow question to trigger a callback when a glyph is selected, using the Tap tool:

https://stackoverflow.com/questions/42234751/bokeh-server-callback-from-tools

When I updated Bokeh from 0.12 to 1.0, my code stopped working. Could you tell me if the above methodology is now outdated?

-Rahul

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/729f4c80-65c3-40ea-aa3e-5bd0fb40adcd%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.