Skip to content

Commit cc3a9ef

Browse files
MAINT: exclude 10_publication_figure from the JupyterLite build
The tutorial crops the white margins off brain.screenshot(), and vtk.js cannot hand a framebuffer back to Python, so there is no screenshot to crop.
1 parent 234e4fe commit cc3a9ef

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎doc/conf.py‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,12 +1037,16 @@ def _lite_copy_tree(folder, rel_dir):
10371037
"examples/visualization/onionskin.py",
10381038
"examples/preprocessing/muscle_ica.py",
10391039
"examples/preprocessing/eeg_bridging.py",
1040-
# Both Report tutorials build their figures by screenshotting a 3D scene
1041-
# (Report._itv calls backend._take_3d_screenshot), and vtk.js cannot hand a
1042-
# framebuffer back to Python, so those sections would embed blank images.
1040+
# These read a 3D scene back as pixels, and vtk.js cannot hand a
1041+
# framebuffer back to Python. Both Report tutorials build their figures by
1042+
# screenshotting (Report._itv calls backend._take_3d_screenshot), and
10431043
# 70_report additionally round-trips a report through HDF5.
10441044
"tutorials/intro/70_report.py",
10451045
"tutorials/preprocessing/14_quality_control_report.py",
1046+
# 10_publication_figure is about cropping the white margins off
1047+
# brain.screenshot(), so without a real screenshot there is no tutorial
1048+
# left; browser brain.screenshot() raises rather than return a blank image.
1049+
"tutorials/visualization/10_publication_figure.py",
10461050
)
10471051

10481052
import sphinx_gallery.gen_rst as _sg_gen_rst # noqa: E402

0 commit comments

Comments
 (0)