Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider using Jupyter Cache #161

Open
betolink opened this issue Jul 26, 2023 · 5 comments
Open

Consider using Jupyter Cache #161

betolink opened this issue Jul 26, 2023 · 5 comments

Comments

@betolink
Copy link

I saw a closed issue that describes more or less what I'm running into, I usually need to modify a small part of a notebook and it would be great if mkdocs-jupyter could use a cache to only re-render the parts that changed.

https://jupyter-cache.readthedocs.io/en/latest/#

Would it be possible? Thanks for the library btw!

@danielfrg
Copy link
Owner

Interesting, i didn't knew about the lib.

Definitely something I want to support, in my mind just checking the modified date and skipping a notebook would be so great to have. It's easy but need to find time to do it.

@fdeheeger
Copy link

Same sort of interest here ; Cache would help but there could be something else...

I am building a documentation with a quite large number of notebooks (moving from nbsphinx to mkdocs). I am experiencing a significant time to build the documentation (like way too much). By reducing that number to a manageable one, I have noticed that when the notebook contains a significant number of images, the building process increases a lot (well.. on my machine ;o) ).
I am not yet sure why (conversion time ? process of the converted document by mkdocs ?).
When I am converting notebook to markdown with nbconvert directly, mkdocs is building the site quite easily (but I am losing other options of the mkdocs-jupyter extension) ; so I am not sure where the time goes...

Any hint ?

@danielfrg
Copy link
Owner

Not sure but agree that cache is something we need to work on.

@logan-markewich
Copy link

+1 bumping on the need for a cache. We (LlamaIndex) have like 500 notebooks, and rebuilding them every time even though they haven't changed is a huge pain.

It would be super awesome if there was a way to save the built notebooks, and only rebuild if there was changes

@znichollscr
Copy link

The myst-nb project may provide some inspiration for how to implement this: https://myst-nb.readthedocs.io/en/v0.12.2/use/execute.html

If I can find time, I would gladly contribute a merge request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants