-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dash Callback function not responding; Error: Duplicate Callback Output #3
Comments
Hi @SambitD23 , |
No. I'm stuck. I tried a lot to bypass it but this error keeps on coming. Can you help? |
This error should not come up unless you have Output('Urbanity', 'options') in two different callback decorators. Do you use it again somewhere else? |
No I just have one callback and still it is giving the error. I am pasting the entire code below. Couldn't figure it out yet :(
|
Try to change your function returns. You can't return four times. You have to return four objects in one return, like this: Let me know if that works. |
No, now it's returning the following error. It's stuck between either the previous error or the following:
The same error is shown for the other three dropdowns as well. |
Sorry. my bad. You don't have to return the whole {options: mbd_opt}, becuase the options value is already part of the callbakc output. It should work if you just return this: return mbd_opt, urb_opt, out_opt, chain_opt |
I am trying to create a dashboard consisting of 8 buttons, each of which corresponds to a filtered df and 4 dropdowns. The attempt was to take the filtered df according to the triggered button and use 4 columns of the df for 'options' of 4 different dcc.dropdown. But dash shows this error message:
In the callback for output(s):
MBD.options
Urbanity.options
Outlet.options
Chain.options
Output 1 (Urbanity.options) is already in use.
Any given output can only have one callback that sets it.
To resolve this situation, try combining these into
one callback function, distinguishing the trigger
by using dash.callback_context if necessary.
My callback is:
The text was updated successfully, but these errors were encountered: