June 24, 2018, 5:33am
my dash app has multiple graph (each scene has 1 graph), i would like to create a callback for each graph using the same input. can i use for loop to do so?
for scene in scenarios:
June 27, 2018, 3:42am
i just want to clarify my problem statement.
i am creating an apps which contain 10 graphs for each scenario with similar callback input. instead of creating the 10 function which is troublesome i wish i can do a function factory kind of implementation. do you have any idea how to achieve it?
June 27, 2018, 3:57am
This is part of my code, i have function factory called “func_factory_4_timing_trend” and i want to create a callback function for each corner.
for corner in corners:
it return as an error =.=
SyntaxError: invalid syntax
June 27, 2018, 12:08pm
that is because you need to define a function.
This thread should be helpful with your issue.
June 27, 2018, 1:49pm
thanks. i decided to lump everything into a big callback function