-
Notifications
You must be signed in to change notification settings - Fork 5
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
Altair dynamic chart rendering issue #140
Comments
Looks like a fix for this was merged a few days ago in altair vega/altair#3364 Does installing the development version from GitHub fix it?
|
I git bisected to: manzt/anywidget@f3be3a4 |
@cpsievert That changes things but doesn't completely fix it (app looks broken in the same way): |
Ah, I missed that error message, I'll look into it |
It looks like at the time that _maybeResize is called: py-shinywidgets/js/src/output.ts Line 113 in 6719b0e
lmWidget.children.length is 0. If I delay BTW, the plots aren't rendering correctly in Safari even when they look good in Chrome: Screen.Recording.2024-03-19.at.10.41.49.AM.mov |
Description
Hi team,
We dynamically generate a variable number of charts depending on the dataset. Following upgrading version, our Altair charts no longer rendering correctly.
In the minimal example below, the code generates three charts and renders those on the dashboard. The version upgrade installed anywidget
0.9.1
and now only the first of the three Altair charts renders. Interestingly, the three Plotly charts still renders as expected.I'd really appreciate your help as I'm not entirely sure what is causing this issue? Many thanks!
Versions
Python: 3.11.6
OS: Ubuntu 22.04.4 LTS
altair==5.2.0
anywidget==0.9.1 <-- working in 0.9.0, failing in 0.9.1
pandas==2.2.1
plotly==5.19.0
shiny==0.8.1
shinyswatch==0.5.1
shinywidgets==0.3.1
Minimal Example
The text was updated successfully, but these errors were encountered: