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
fix: display and resize plots when not in a lumino context #1531
fix: display and resize plots when not in a lumino context #1531
Conversation
See also jupyter-widgets/ipywidgets#3282 |
d4e0958
to
0f05a17
Compare
0f05a17
to
7d4ce2e
Compare
I guess we need to limit yarn, see #1588 (comment) |
c1825bb
to
c45826c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks
meeseeksdev please backport to 0.12.x |
Owee, I'm MrMeeseeks, Look at me. There seem to be a conflict, please backport manually. Here are approximate instructions:
And apply the correct labels and milestones. Congratulations — you did some good work! Hopefully your backport PR will be tested by the continuous integration and merged soon! Remember to remove the If these instructions are inaccurate, feel free to suggest an improvement. |
* fix: display and resize plots when not in a lumino context * chore: fix CI (cherry picked from commit 55d660d)
* fix: display and resize plots when not in a lumino context * chore: fix CI (cherry picked from commit 55d660d)
* fix: display and resize plots when not in a lumino context * chore: fix CI (cherry picked from commit 55d660d)
* fix: display and resize plots when not in a lumino context * chore: fix CI (cherry picked from commit 55d660d)
References
no issue for this yet
Code changes
Use a combination of
IntersectionObserver
andResizeObserver
instead of lumino-events to control relayouts, so this works when lumino-events are not available. This is the case when embedding bqplot in an ipyvuetify-template.The typescript version was changed to have type support for ResizeObserver.
User-facing changes
before:
before.mp4
after:
after.mp4
To reproduce:
A similar PR, but without resize support: #1029