danielfrg / mkdocs-jupyter

Use Jupyter Notebook in mkdocs
https://mkdocs-jupyter.danielfrg.com
Apache License 2.0
362 stars 45 forks source link

Multi-core convert? #191

Open logan-markewich opened 3 months ago

logan-markewich commented 3 months ago

I have a repo with... too many notebooks.

Is there any way to enable multi-core/multi-processing to speedup up the conversion?

dr-br commented 1 month ago

I recently had exactly the same problem.
Instead of fixing mkdocs build behavior I ended with:
find docs/ -name "*.ipynb" -print0 | xargs -0 -I {} bash -c "echo {}&& jupyter execute --inplace {}&" and execute: False in the mkdocs.yml.
Concerning to this, parallel build does obviously not help much. However, @thedrow did not involve notebook builds. Here, parallel execution matters a lot!