How to trigger Ajax call after a box selection is done in python bokeh plot

I have two plots, namely, plot1 and plot2.

Plot2 has BoxSelectTool enabled and I can obtain point coordinates of the selected rectangular area using CustomJS.

Now I need to trigger an ajax call with the obtained coordinates to let server-side update plot2.

I posted the question at the StackOverflow:

https://stackoverflow.com/questions/50853416/how-to-trigger-ajax-call-after-a-box-selection-is-done-in-python-bokeh-plot

It would be great if someone give me a help.

Thank you

–Sijun

I posted my own answer that solves using custom Event in JavaScript. :slight_smile:

2018년 6월 14일 목요일 오후 5시 55분 49초 UTC+9, Sijun Cho 님의 말:

···

I have two plots, namely, plot1 and plot2.

Plot2 has BoxSelectTool enabled and I can obtain point coordinates of the selected rectangular area using CustomJS.

Now I need to trigger an ajax call with the obtained coordinates to let server-side update plot2.

I posted the question at the StackOverflow:

https://stackoverflow.com/questions/50853416/how-to-trigger-ajax-call-after-a-box-selection-is-done-in-python-bokeh-plot

It would be great if someone give me a help.

Thank you

–Sijun