Skip to content
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

Graph nodes flocking to single point #175

Open
nilq opened this issue May 17, 2022 · 3 comments
Open

Graph nodes flocking to single point #175

nilq opened this issue May 17, 2022 · 3 comments

Comments

@nilq
Copy link

nilq commented May 17, 2022

Description

Nodes in graphs are shown correctly for a second before flocking to a single point, usually happens when inserting Cyto-components using callbacks. It is independent of any particular layout. This happens often.

Looks like this:

Screenshot-2022-05-17-at-16-15-32

Steps/Code to Reproduce

Not deterministic. Happens when having multiple graphs, shown at different times in the Dash app.

Expected Results

A graph with properly placed nodes.

Actual Results

This.

Screenshot-2022-05-17-at-16-15-32

Versions

Dash 2.3.1
/Users/niels/Documents/GitHub/test/test.py:3: UserWarning:
The dash_html_components package is deprecated. Please replace
`import dash_html_components as html` with `from dash import html`
  import dash_html_components; print("Dash Core Components", dash_html_components.__version__)
Dash Core Components 2.0.2
/Users/niels/Documents/GitHub/test/test.py:4: UserWarning:
The dash_core_components package is deprecated. Please replace
`import dash_core_components as dcc` with `from dash import dcc`
  import dash_core_components; print("Dash HTML Components", dash_core_components.__version__)
Dash HTML Components 2.3.0
Dash Renderer 1.9.1
Dash HTML Components 0.2.0
@nilq
Copy link
Author

nilq commented May 19, 2022

This even happens in the examples in the documentation.

Screenshot-2022-05-19-at-10-52-39

@nilq
Copy link
Author

nilq commented May 24, 2022

I have not yet looked into any of the code in this repo, but investigating from the outside; I have been able to stop this behaviour by disabling updating of Cyto-components from callbacks. This is not sustainable.

@nilq
Copy link
Author

nilq commented May 24, 2022

Furthermore, it happens in Safari, Chrome and Firefox - both when hosted locally and in a pod.

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

1 participant