I made a callback function which depends on multiple dropdown menus and range sliders as input to produce one heatmap. Similar to this:
def update_figure(value, dropdown, colour, slider, dropdown2):
do lots of computations based on all input except for colour
fig = go.Figure()
if colour is None:
But the computing takes a lot of time. Is there a possibility that if the color option is chosen later on, to skip all the computation and only add the color scale to the heatmap? Because now every time I select another colour option, the entire computation is repeated which takes too long time.
How to make another new callback with only selected colour as the input value and the new figure as output which is the figure created in another callback function based on multiple other inputs?