Open akhmerov opened 4 years ago
Hmm, I agree with ~most of these points.
Rebuilding the complete cache may take a few minutes, but is unlikely going to be much longer.
You mean re-running all the notebooks? Well Jupinx take a few hours to rebuild all theirs, so I think that's a bit optimistic.
Create a folder for the cache within sphinx build directory
Just to clarify, the cache has nothing to do with sphinx. Sphinx may use it, but it should be able to be used independently.
Just to clarify, the cache has nothing to do with sphinx. Sphinx may use it, but it should be able to be used independently.
Indeed, keeping the cache folder within sphinx build folder is how I imagine sphinx could use the cache.
You mean re-running all the notebooks? Well Jupinx take a few hours to rebuild all theirs, so I think that's a bit optimistic.
Fair enough. I have a course that takes about an hour to build sequentially, indeed.
Additions/observations based on the above:
I would like to document my thoughts wrt caching, partly inspired by the exploration of different approaches by @chrisjsewell. I hope these would be useful.
Requirements
Minimal implementation
(kernel_name, code_cells)
, creates a subfolder with that hash, links the notebook execution context from that folder, executes the notebook, and writes it in that folder.sphinx clean
or deleting the cache folder.