jupyter/jupyter-sphinx

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

dimkart opened this issue · 2 comments

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!

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.

Ok, thank you.