Adding plot to panel slow

I have an app that i built which has a sidepanel with controls and another Column that shows plots (after “upload” button has been pressed)

to put it simply:
website=pn.Row(controls, results)

when “update” button is pressed
the values from the controls go into a get_plots() function and then

the get_plots take 2 seconds to finish
but for some reason website[1]=plots takes 20 seconds

anyone knows why?

1 Like

Hi @alon-sht

Is it possible for you to post a minimum, reproducible example? One way to do that is to copy your code into a new file. Start removing functionality until you cannot remove more. In my experience that process will also often explain what is wrong.