Jupyter and Pyodide integration#
Support for working with WebGPU from Jupyter notebooks and Pyodide.
Jupyter helpers#
- webgpu.jupyter.Draw(scene, width=640, height=600)#
Export scene as a lazy-loading HTML snippet with a pre-baked screenshot.
The screenshot is rendered in a separate subprocess (own Chrome + GPU device) so it doesn’t interfere with the main build process’s mapAsync calls. The scene blob and engine JS are saved as separate static files and only fetched when the user clicks to interact.