QuantEcon / sphinxcontrib-jupyter

A Sphinx Extension for Generating Jupyter Notebooks
BSD 3-Clause "New" or "Revised" License
74 stars 23 forks source link

ENH: Implement code execution at the Transform layer #274

Open mmcky opened 4 years ago

mmcky commented 4 years ago

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.

Ideas and Notes:

  1. perhaps a single RST file could be built using dask.delayed + joblib for code block level caching.

  2. 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?