It would be nice to implement code execution at the transform layer of sphinx to have shared execution for the different targets html, coverage, download notebooks and code block level caching.
perhaps a single RST file could be built using dask.delayed + joblib for code block level caching.
coverage: it isn't immediately obvious how to implement tests as if they are run in the same language kernel then the state will be different for cells that follow (in html workflow). May need to consider two task trees for coverage and other execution runs?
It would be nice to implement code execution at the
transform
layer of sphinx to have shared execution for the different targetshtml
,coverage
,download notebooks
and code block level caching.Ideas and Notes:
perhaps a single RST file could be built using
dask.delayed
+joblib
for code block level caching.coverage: it isn't immediately obvious how to implement
tests
as if they are run in the samelanguage kernel
then the state will be different for cells that follow (inhtml
workflow). May need to consider two task trees forcoverage
andother execution runs
?