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

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

Open dimkart opened this issue 3 years ago • 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!

dimkart avatar Oct 18 '21 14:10 dimkart

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.

akhmerov avatar Oct 18 '21 16:10 akhmerov

Ok, thank you.

dimkart avatar Oct 19 '21 12:10 dimkart