Skip to content

ENH: add the JupyterLite notebook setup cell (JupyterLite split 4/5) - #14150

Draft
natinew77-creator wants to merge 2 commits into
mne-tools:mainfrom
natinew77-creator:lite-setup-cell
Draft

ENH: add the JupyterLite notebook setup cell (JupyterLite split 4/5)#14150
natinew77-creator wants to merge 2 commits into
mne-tools:mainfrom
natinew77-creator:lite-setup-cell

Conversation

@natinew77-creator

Copy link
Copy Markdown
Contributor

Part 4 of the split of #13925. Parts 1 to 3 are #14128, #14135 and #14144.

Adds the cell prepended to every JupyterLite notebook. It installs MNE into the browser kernel with piplite, then patches what Pyodide does not provide: requests and pooch are routed through pyodide.http, the readers that expect a file already on disk are wrapped to fetch it first, and a few things that need OS threads become no-ops.

It appends the vtk.js renderer from #14144, so that one goes first.

The cell is a plain string constant and nothing in the build imports it yet. The Sphinx wiring that prepends it to notebooks is the last PR in the series.

Installs MNE into the browser kernel with piplite and patches what Pyodide does
not provide: HTTP data fetching, the readers that expect a file on disk, and a
few things that need OS threads.
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