Adjustable Vertical Sliders in ipympl

Hi All,

I am hoping someone can help me with how I can go about implement an “area under the curve” (or really “area between the curve”) idea in ipympl. The thought is to have two draggable vertical bars, an xmin and and xmax, and the area between two curves contained within the bars is then output somewhere on the plot. I could have sworn I had seen something similar to this before but I cannot find it again. Attached image is a concept idea (borrowed from desmos)