BokehJS : Callback on select - get start and end

Hi,

I try to catch the start and end of selected interval.
I tried various things :

p.toolbar.tools[0].change(function (a,b){
console.log(a,b 
})

Nothing happens on selection.

Thank you

@Eola There’s not enough code/context here to comment, except to say offhand that snippet does not look correct for any purpose. Please update this topic with:

HI Bryan,
This is the codepen link : https://codepen.io/BokehJS/pen/RwKeYNg

Users will use select tool to select interval on a graph. I need to update divs cell on selection event. The cell will contain the start and the end of the selected interval.

Thank you for your help