mirror of
https://github.com/MLSysBook/TinyTorch.git
synced 2026-04-29 23:28:07 -05:00
🐍 Perfect Python-First Workflow Implementation
✅ PYTHON-FIRST DEVELOPMENT: - Always work in raw Python files (modules/XX/XX_dev.py) - Generate Jupyter notebooks on demand using Jupytext - NBGrader compliance through automated cell metadata - nbdev for package building and exports 🔧 WORKFLOW IMPROVEMENTS: - Fixed file priority: use XX_dev.py over XX_dev_enhanced.py - Clean up enhanced files to use standard files as source of truth - Updated documentation to highlight Python-first approach 📚 COMPLETE INSTRUCTOR WORKFLOW: 1. Edit modules/XX/XX_dev.py (Python source of truth) 2. Export to package: tito module export XX (nbdev) 3. Generate assignment: tito nbgrader generate XX (Python→Jupyter→NBGrader) 4. Release to students: tito nbgrader release XX 5. Auto-grade with pytest: tito nbgrader autograde XX ✅ VERIFIED WORKING: - Python file editing ✅ - nbdev export to tinytorch package ✅ - Jupytext conversion to notebooks ✅ - NBGrader assignment generation ✅ - pytest integration for auto-grading ✅ 🎯 TOOLS INTEGRATION: - Raw Python development (version control friendly) - Jupytext (Python ↔ Jupyter conversion) - nbdev (package building and exports) - NBGrader (student assignments and auto-grading) - pytest (testing within notebooks) Perfect implementation of user's ideal workflow
This commit is contained in: