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

ipycanvas needs all referencing models to be pushed #24

Open
blois opened this issue May 6, 2022 · 1 comment
Open

ipycanvas needs all referencing models to be pushed #24

blois opened this issue May 6, 2022 · 1 comment

Comments

@blois
Copy link
Collaborator

blois commented May 6, 2022

https://github.com/martinRenou/ipycanvas/issues/170#issuecomment-1119323393

Currently only models which are referenced by viewed widgets are instantiated in the sandboxed iframe. It sounds like similar to jsLink that ipycanvas has a controlling model that references the viewed widgets but is not referenced.

There should be a mechanism to pass all models that need to be instantiated when querying the state for a specific widget.

@maartenbreddels
Copy link

Might help to use this code to find 'connected' widgets:
https://github.com/jupyter-widgets/ipywidgets/pull/3114/files#diff-346aff842b126a18502cf33a55d587dbfe6c963c9991cf9f9bb56e205b88e41eR299

Which means, all widget that it references, or widget that reference the widgets required.

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

2 participants