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

refactor!: add module support and take out import maps from widgets (ipyesm) #56

Merged
merged 3 commits into from
Feb 6, 2024

Conversation

maartenbreddels
Copy link
Contributor

This should be the precursor to what should become ipyesm, which could be a separate package that ipyvue, ipyreact, and possibly anywidget (cc @manzt) could depend on and use.

Note that the interface is declerative (you do not explicitly create widgets), which allows Solara (or other frameworks that render widgets to handle the import maps and esm loading in a different way.)

For instance, solara could add a import map DOM element, and load the ESM modules via a script tag.

@maartenbreddels maartenbreddels force-pushed the refactor_ipyesm branch 2 times, most recently from db0ff2b to a4e1cc5 Compare February 6, 2024 18:08
This should be the pre-cursor to what should become ipyesm, which
could be a separate package that ipyvue, ipyreact and possibly
anywidget could depend on and use.

Note that the interface is declerative (you do not explicitly create
widgets), which allows Solara (or other frameworks that render widgets
to handle the import maps and esm loading in a different way.)

For instance, solara could add a import map DOM element, and load the
ESM modules via a script tag.
Although initially this worked well, we do not know if we want to load
from a module, or from esm.sh. Instead, we can have the default
import map make MUI and confetti-canvas work.
@maartenbreddels maartenbreddels merged commit 44e69df into master Feb 6, 2024
11 checks passed
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

Successfully merging this pull request may close these issues.

2 participants