Skip to content

Raise an exception when initializing callbacks with circular dependencies #323

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

Closed
chriddyp opened this issue Aug 7, 2018 · 2 comments
Closed
Assignees

Comments

@chriddyp
Copy link
Member

chriddyp commented Aug 7, 2018

@app.callback(Output('my-graph', 'figure'), [Input('my-graph', 'figure')])

Our users do this pretty often. For example, see here: https://community.plot.ly/t/object-as-input-output-error-loading-dependencies/12492

@chuyachia
Copy link

Hi, I would like to help on this one. Does this look like what you have in mind?
https://github.com/chuyachia/dash/blob/callback-circular-deps-exception/dash/dash.py#L568-L578

@zouhairm
Copy link

zouhairm commented Sep 7, 2018

This is kind of related to https://github.com/plotly/dash-renderer/issues/76
If an exception is going to be raised by default, there should be a way to suppress it in the config to allow for circular dependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants