Skip to content

Add offscreen-canvas support for the jupyterlite-xeus case #365

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

Merged
merged 65 commits into from
Aug 1, 2025

Conversation

DerThorsten
Copy link
Contributor

...just an more or less empty widget so far...

Copy link
Contributor

github-actions bot commented Jul 7, 2025

lite-badge 👈 Try it on ReadTheDocs with JupyterLite!

@martinRenou martinRenou added the enhancement New feature or request label Jul 28, 2025
@martinRenou
Copy link
Collaborator

Hope you don't mind, I updated your branch from the UI

@@ -0,0 +1,550 @@

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you make sure this was really shipped as part of the wheel under site-packages?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, good catch.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@martinRenou

[tool.hatch.build.hooks.jupyter-builder]
ensured-targets = [
    "ipycanvas/offscreen_canvas/js/init.js",
    "ipycanvas/nbextension/static/index.js",	    "ipycanvas/nbextension/static/index.js",
    "ipycanvas/labextension/package.json",	    "ipycanvas/labextension/package.json",
]	

adding it here does the trick I think, but it does not feel right there.
I think it rather belongs in tool.hatch.build.targets.sdist but then we need to specify all our desired includes.
I was not able to get this to work so far.

[tool.hatch.build.targets.sdist]
include = [
 # [...]
]

Copy link
Collaborator

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@martinRenou martinRenou marked this pull request as ready for review August 1, 2025 12:21
@martinRenou martinRenou changed the title offscreen-canvas Add offscreen-canvas support for the jupyterlite-xeus case Aug 1, 2025
@martinRenou martinRenou merged commit 727d33c into jupyter-widgets-contrib:master Aug 1, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants