Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,17 @@ jobs:
no_output_timeout: 10m
command: |
./tools/circleci_download.sh
# Ensure the data the JupyterLite notebooks need is on disk so conf.py can
# copy the required subset for the build. lite_data fetches only the
# curated files the browser notebooks use (from the MNE-lite-data OSF
# project) instead of the full sample/kiloword/erp_core/mtrf/eegbci
# datasets, which slims the build. The curated files share hashes with the
# full datasets, so on a full build that already downloaded them nothing
# extra is fetched.
- run:
name: Ensure MNE data for JupyterLite
command: |
python -c "import mne; mne.datasets.lite_data.data_path(update_path=True)"
- run:
name: Verify build type
command: |
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,10 @@ venv/
.hypothesis/
.ruff_cache/
.ipynb_checkpoints/

# generated by the JupyterLite docs build (doc/conf.py)
doc/jupyterlite_contents/*
!doc/jupyterlite_contents/.gitkeep
doc/lite_extra/

/.claude/
2 changes: 1 addition & 1 deletion doc/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ html_dev-noplot: html-noplot
html_dev-front: html-front

linkcheck:
@$(SPHINXBUILD) -b linkcheck -D nitpicky=0 -q -D plot_gallery=0 -D exclude_patterns="cited.rst,whats_new.rst,configure_git.rst,_includes,changes/dev" -d _build/doctrees . _build/linkcheck
@$(SPHINXBUILD) -b linkcheck -D nitpicky=0 -q -D plot_gallery=0 -D exclude_patterns="cited.rst,whats_new.rst,configure_git.rst,_includes,changes/dev,jupyterlite_contents,lite_extra,pypi" -d _build/doctrees . _build/linkcheck

doctest:
$(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) _build/doctest
Expand Down
1 change: 1 addition & 0 deletions doc/changes/dev/14157.newfeature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add an "Open in JupyterLite" badge to the tutorials and examples that can run in the browser, by `Natneal B`_.
Loading
Loading