I was trying to update two lines based on the information I get from the first line and calculate some optimal points and construct the second line. I wanted to to know if there are any methods that I can use within bokeh that I could use to create a callback to do the job.
In the following code I have implemented the callback for the first line but I I need to somehow call a second function once there is a change on the line to modify the second line, since the callback code is done in the javascript code I need to call a python function after that call back and pass the data to the second line. I would appreciate any help.

