Skip to content

ENH: add the JupyterLite browser runtime (JupyterLite split 3/4) - #14144

Draft
natinew77-creator wants to merge 2 commits into
mne-tools:mainfrom
natinew77-creator:lite-browser-runtime
Draft

ENH: add the JupyterLite browser runtime (JupyterLite split 3/4)#14144
natinew77-creator wants to merge 2 commits into
mne-tools:mainfrom
natinew77-creator:lite-browser-runtime

Conversation

@natinew77-creator

@natinew77-creator natinew77-creator commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

Part 3 of the split of #13925. Parts 1 and 2 are #14128 and #14135.

Adds the browser side of the JupyterLite docs: the setup cell prepended to every notebook, and the vtk.js backend for MNE's 3D renderer that it appends. The setup cell installs MNE with piplite and patches what Pyodide does not provide, mainly HTTP data fetching and the readers that expect a file on disk. The renderer exists because VTK cannot load in WebAssembly, so only MNE's final drawing step is replaced and the transform maths stays with MNE.

Both are plain string constants with no imports beyond each other, so nothing in the build touches them yet. The Sphinx wiring that uses them is the last PR in the series.

The setup cell that installs MNE into the browser kernel and patches what
Pyodide does not provide, plus the pyvista-js backend for MNE's 3D renderer
that it appends. Wired up by the next PR in the series.
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.

1 participant