manzt / anywidget

jupyter widgets made easy
https://anywidget.dev
MIT License
451 stars 35 forks source link

feat(anywidget): Hoist static assets (_esm, _css) to share among front-end widget instances #628

Open manzt opened 1 month ago

manzt commented 1 month ago

Towards #613

This PR is brings up some challenges for the ecosystem as a whole. I'm very tempted to go forward with #579. That would allow us to avoid the complexity of needing to work with ipywidgets (handling the comm ourself and messages), but currently all the ipywidgets container classes (e.g., Box, HBox, VBox) do an instanceof(widget, ipywidget.Widget) check. That means if we were to introduce a more minimal base class for anywidget.AnyWidget, they couldn't be used in those containers.

changeset-bot[bot] commented 1 month ago

⚠️ No Changeset found

Latest commit: 3d9e9e89bf192e786398d540013581631968bc7f

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR