jupyter / jupyter-sphinx

Sphinx extension for rendering of Jupyter interactive widgets.
https://jupyter-sphinx.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
186 stars 65 forks source link

Option to not re-execute the notebook when output does exist? #188

Open dimkart opened 2 years ago

dimkart commented 2 years ago

Is there a way to make sphinx use the static output of the notebook (if there is any) instead of re-executing the notebooks every time we build the docs? I use a github action that re-builds docs with every push in a clean environment, and some of the notebooks have long execution times. Thanks!

akhmerov commented 2 years ago

I believe sphinx cache should work (e.g. rebuilding locally doesn't take time if a file was unchanged). I don't have experience with gh actions cache, though. Setting that one up may take some work.

dimkart commented 2 years ago

Ok, thank you.