Spaces:
Runtime error
Runtime error
Commit History
-
Pre-render Mermaid diagrams + bake preview outputs into submission notebook (#28)
theDocWho +1: theDocWho
Unverified signatureThe notebook on GitHub PR view was showing Mermaid blocks as raw code (GitHub doesn't render Mermaid inside .ipynb cells) and the dataset/inference preview cells were blank (no saved outputs). Both fixed. New: scripts/render_notebook_assets.py Two-pass renderer for ccdp_submission.ipynb: 1. Mermaid → PNG. Each ```mermaid block in markdown cells is pushed to mermaid.ink, the PNG fetched and saved to notebooks/assets/diagrams/, and the markdown rewritten to use . 11 diagrams rendered (39–63 KB each). 2. Cell execution. nbclient runs the notebook with allow_errors=True, stubbing only the two runtime-only cells (Colab upload widget + inference-on-IMG_PATH). Outputs saved into the .ipynb so the rendered view on GitHub now shows: - §1.5 CarDD val grid (random 8 images, matplotlib subplot) - §1.5 Stanford-Cars random samples grid - §3.3 damage_seg predicted-mask overlay (input + masks side by side) …6e031e4