Learn how to use Dash Bio for next-gen sequencing & quality control. 🧬 Register for the Oct 27 webinar.

Number of callbacks chosen after code has run?

I was wondering about the nature of how the dash callbacks work.

What I want to happen is that the number of input statements that I make is determine by something that happens in the code (like say inputting the number 3 generates 3 input boxes).

I have tried things like having a callback with an output of children and then have a for loop running in that callback. I have also tired having a for loop outside of a callback (hoping to generate multiple callbacks). However depending on what I do either nothing happens or I get an Error loading dependencies.

Is what I am suggestion possible in Dash?
If so could someone give me a helpful point in the right direction?

See Dynamic Controls and Dynamic Output Components

1 Like