You do in fact need to create every callback that your app will ever use up front before it starts running. And yes, you’ll need to create unique IDs for the output elements. There’s been some discussion of this before on the forum. In particular, see Callback for Dynamically created Graph.
nedned
7
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Auto-updating Graph: Callback is not being called using dcc.Location | 0 | 367 | February 18, 2020 | |
| Where do I put callback functions in a multi-page app with inputs and interactive graph? | 0 | 265 | June 5, 2020 | |
| Plot dcc graph on callback not working | 4 | 6361 | July 5, 2018 | |
| Dynamically declaration of dash callback | 5 | 16767 | July 17, 2018 | |
| A callback is getting ignored multi page application | 2 | 1049 | April 11, 2020 |