I’m trying to build a dashboard with two tabs, each tab contains a plot function:
@pn.depends(int_widget.param.value) plot_somethin(variable): #there is also plot_somethin2() for the other tab returns a plot
that is dependent (pn.depends) on the same widget (not inside any of these tabs).
Due to the fact that these plotting functions take a lot of time I want the function for each tab to run only when that tab is active.
Is there any possible way that the plot_somthin will only run when that tab is active?