I’m trying to build dashboard that can dynamically update my model and I’m trying to make it multiuser, so users can concurrently see different models So far I used dcc.Store(storage_type=‘session’) inside my code, but I don’t know how to make variables for every user that i can “unpack” inside callback initiation if i need dynamic number of graphics for every user that depends on number of features so I need a way to do something like this
@app.callback(Output('graph','children'),
[Input('object_{}'.format(i), 'value') for i in range(<var_for_user>)])
...
The Store exists clientside, i.e. the is one for each user already. Hence the app should would for multiple users independently without any modifications.
No, nothing like that
Sorry if i put it wrong
Lets suggest that my user uploads config file
I parse it into dcc.Store component and build x sliders( number x i got from this file)
so now i have x sliders. If user uploads new config with number y, then i want to rebuild dashboard for him and then i’ll have y slider
Question is:
how can i build my callback, if i dont know how many sliders i have?
I thought i should make something like
@app.callback(Output(..),
[Input('slider_{}'.format(i) for i in range(<number in loaded file>)])