How to specify dependence on the value_throttled?

Hi, I’m learning to use the param and panel libraries, and I would like to ask you guys two questions:
Using @param.depends and pn.interact, how do you specify that a method depends on the value_throttled of a widget instead of the value?. Thank you very much!

1 Like

In @pn.depends refer to value_throttled under param.
Check the differnce when using the slider.

a=pn.widgets.IntSlider(value=5,end=10,start=0)

@pn.depends(a.param.value_throttled)
def show_t(r):
    return r

@pn.depends(a.param.value)
def show(r):
    return r

pn.Column(a,show_t,show)
2 Likes