Skip to content

ENH: add the lite_data dataset (JupyterLite split 1/5) - #14128

Draft
natinew77-creator wants to merge 11 commits into
mne-tools:mainfrom
natinew77-creator:lite-data-dataset
Draft

ENH: add the lite_data dataset (JupyterLite split 1/5)#14128
natinew77-creator wants to merge 11 commits into
mne-tools:mainfrom
natinew77-creator:lite-data-dataset

Conversation

@natinew77-creator

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

Copy link
Copy Markdown
Contributor

Closes part of #14041.

Adds mne.datasets.lite_data, a small curated archive holding only the files the browser documentation reads, taken from sample, kiloword, erp_core, mtrf and eegbci (same files, same checksums). It extracts to MNE-lite-data/ with each file under its original dataset folder, so paths match the full datasets.

Those ship as separate multi-GB archives, so without this the docs build downloads several gigabytes to serve a handful of files.

The approach was agreed in #14041, where @teonbrooks signed off on the fetcher and @larsoner kindly hosted the archive on OSF.

Nothing under mne/ uses it yet; the consumer is the JupyterLite docs build in #13925. Keeping it separate lets it land on its own.

Follows the usual dataset layout and adds a metadata-only test that needs no network.

A small curated archive holding only the files the browser documentation
reads, taken from sample, kiloword, erp_core, mtrf and eegbci. Those ship as
separate multi-GB archives, so without it the docs build downloads several
gigabytes to serve a handful of files.
@natinew77-creator

Copy link
Copy Markdown
Contributor Author

@teonbrooks PR 1 of the split is up.

@natinew77-creator
natinew77-creator marked this pull request as draft August 4, 2026 15:06
@natinew77-creator natinew77-creator changed the title ENH: add the lite_data dataset ENH: add the lite_data dataset (JupyterLite split 1/5) Aug 4, 2026

@teonbrooks teonbrooks left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

this looks good. i think we should just clarify the documentations and docstrings


This exists for the documentation build; for analysis, use the individual
dataset fetchers above.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would add a note that it currently does not support the somatosensory examples

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done. Both the dataset docs and the docstring now say somato is not included, so those examples are not available in the browser.

Comment thread doc/documentation/datasets.rst Outdated
================
:func:`mne.datasets.lite_data.data_path`

A small curated archive holding only the files the browser documentation reads,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would frame it as the files to run the examples and tutorials or something along that line that is more descriptive of the dataset use case

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Reworded to lead with the use case the files needed to run the tutorials and examples.

Comment thread mne/datasets/lite_data/lite_data.py Outdated
The full MNE datasets (``sample``, ``kiloword``, ``erp_core``, ``mtrf``,
``eegbci``) ship as separate multi-GB archives, so the docs build would download
several gigabytes just to serve a handful of files to the browser notebooks.
``lite_data`` is a small curated archive holding only those files -- same data,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I would move this section first in the docstring description.

The explanation of why not the full MNE dataset could come later

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Moved. It now opens with what lite_data is, and the size explanation follows.

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.

2 participants