-
-
Notifications
You must be signed in to change notification settings - Fork 485
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
Warn appear in multiple ui.plotly #2435
Comments
Hi @Wzhipeng, thanks for reporting this issue! Can you, please, try to provide a minimal reproduction for the warning? |
Hi @falkoschindler I am on mac 12.3 and use chrome browser, python version is 3.11.5 |
I think you can create 20 ui.plotly locally and see if this error occurs in the browser console |
Ah, ok, here is a minimal reproduction: import plotly.graph_objects as go
for _ in range(9):
ui.plotly(go.Figure()) Strangely the warning occurs with 9 or more plots, even though the warning mentions "11 plotly_animated listeners". |
Isn't this due to the events being created/forwarded by vue on each update of the chart? nicegui/nicegui/elements/plotly.vue Lines 28 to 62 in 194a64a
I'm guessing this for loop should only run when the element is mounted, not when it is updated? |
Should be fixed by #2505 |
Description
When my page calls many ui.plotly drawings, the following error will appear.
The text was updated successfully, but these errors were encountered: