✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🐇 Announcing Dash VTK for 3d simulation graphics. Check out the March webinar.

Dynamic outputs contained variable from Inputs

Hi All, I meet a problem while using the callback.
My output of the callback (‘id_%s’%n_clicks, ‘value’) is generated by the input (n_clicks). If I set the n_clicks as a global variable, n_clicks wouldn’t change after pressing the button…
Do you know how to solve thie problem?

Many thanks!