Hi,
Still learning bokeh. I run into an issue using sliders, which at the moment I am not sure what the correct way is to solve it.
Description:
I have multiple sliders. Some are dependent
Some example:
slider1.on_change(‘value’,lambda attr, old, new:update())
slider2.on_change(‘value’,lambda attr, old, new:update())
In my calculations:
val1=slider1.value
val2=slider2.value*val1**2
slider2.value=val2
When I slide slider 1 it will go in a loop, slider 2 will update which will trigger slider 1 again,…
I was looking in the documentation if there was a way to change the value of the slider but not trigger an on_change but couldn’t find anything. Secondly, I was thinking of removing the on_change with remove_on_change and then add it afterwards again. Thirdly, I was thinking of using a blocking variable to be used inside the update function (if block is True ignore the calculation call)
What is in general a good approach to deal with this?
Thanks!
Best,
Glenn

