nbdev2 – Create delightful software with Jupyter Notebooks
Essential Commands
nbdev_export # Convert notebooks → Python modules
nbdev_test # Run tests from notebooks
nbdev_clean # Clean outputs/metadata
nbdev_docs # Build documentation
nbdev_preview # Preview docs locally
nbdev_readme # Update README from index.ipynbCleanup Script
Full rebuild from scratch. Clears all generated files (_docs, _proc, .quarto), Python artifacts, then regenerates everything.
./cleanup.shUse when:
.qmdfiles aren’t updating (nbdev doesn’t overwrite existing.qmdin_proc)- Switching branches with different content
- Listings show stale/duplicate entries