sphinx-gallery icon indicating copy to clipboard operation
sphinx-gallery copied to clipboard

ENH: Parallel gallery generation

Open jschueller opened this issue 4 years ago • 22 comments

Closes #25

jschueller avatar Oct 28 '21 07:10 jschueller

Thinking about this a bit more, I'd expect this not to work for (at least) the matplotlib, mayavi, and pyvista scrapers because these are all global-state based. And then there will be tricky interactions with reset_modules, which also by default does global state stuff at least for matplotlib. So I'm not sure this will ever work at least for the majority of our users :(

larsoner avatar Oct 28 '21 14:10 larsoner

I'll copy that over to the issue so more people can tell me how I'm wrong :)

larsoner avatar Oct 28 '21 15:10 larsoner

maybe the sphinx folks (@samdoran or @tk0miya) could give hints, or sklearn (@Titan-C @GaelVaroquaux) would be interested in speeding up their builds too ?

jschueller avatar Jan 11 '22 09:01 jschueller

It seems this handler is invoked on the bootstrap process of Sphinx (on builder-inited event). So there is no special support from Sphinx framework.

tk0miya avatar Jan 11 '22 17:01 tk0miya

indeed, we're looking at parallelizing the gallery jobs at the extension level

jschueller avatar Jan 11 '22 17:01 jschueller