20 Commits

Author SHA1 Message Date
Vijay Janapa Reddi
97e0563614 Add community and benchmark features with baseline validation
- Implement tito benchmark baseline and capstone commands
- Add SPEC-style normalization for baseline benchmarks
- Implement tito community join, update, leave, stats, profile commands
- Use project-local storage (.tinytorch/) for user data
- Add privacy-by-design with explicit consent prompts
- Update site documentation for community and benchmark features
- Add Marimo integration for online notebooks
- Clean up redundant milestone setup exploration docs
- Finalize baseline design: fast setup validation (~1 second) with normalized results
2025-11-20 00:17:21 -05:00
Vijay Janapa Reddi
48dfc4c820 Add example NBGrader assignments for 01_setup module
- Include source and release versions of 01_setup assignment
- Demonstrates working NBGrader workflow with real module
- Shows what instructors will get when running tito nbgrader generate/release
- Provides template for how assignments are structured

These are example outputs from testing NBGrader integration.
2025-09-16 08:42:11 -04:00
Vijay Janapa Reddi
11c56ba2dd Integrate NBGrader with TinyTorch and enhance status checking
- Fix NBGrader configuration to use proper assignments/ directory structure
- Update NBGrader commands to work with TinyTorch modules in modules/source/
- Initialize complete NBGrader workflow: generate -> release -> collect -> autograde
- Add virtual environment setup with all required dependencies (numpy, matplotlib, pytest, nbgrader, rich, networkx)
- Integrate comprehensive status checking into tito CLI hierarchy (tito/core/status_analyzer.py)
- Remove standalone status scripts - everything now unified under tito commands
- Provide end-to-end tested workflow for educational assignment management

Tested functionality:
- tito module status --comprehensive (full system health dashboard)
- tito nbgrader init/generate/release/status (complete assignment workflow)
- Virtual environment with proper dependency management
- Professional CLI architecture with no standalone scripts
2025-09-16 02:30:49 -04:00
Vijay Janapa Reddi
f1d47330b3 Simplify export workflow: remove module_paths.txt, use dynamic discovery
- Remove unnecessary module_paths.txt file for cleaner architecture
- Update export command to discover modules dynamically from modules/source/
- Simplify nbdev command to support --all and module-specific exports
- Use single source of truth: nbdev settings.ini for module paths
- Clean up import structure in setup module for proper nbdev export
- Maintain clean separation between module discovery and export logic

This implements a proper software engineering approach with:
- Single source of truth (settings.ini)
- Dynamic discovery (no hardcoded paths)
- Clean CLI interface (tito package nbdev --export [--all|module])
- Robust error handling with helpful feedback
2025-07-12 17:19:22 -04:00
Vijay Janapa Reddi
257b353e97 Add proper NBGrader metadata to all cells
- Added metadata to setup-imports cell: grade=false, solution=false, task=false
- All cells now have proper NBGrader metadata following tensor module pattern
- Maintains consistent metadata structure across all cells
- Ensures proper NBGrader processing and student version generation
- Follows professional NBGrader best practices for educational content
2025-07-12 15:19:23 -04:00
Vijay Janapa Reddi
b316476995 Apply tensor module lessons to setup assignment
- Improved educational structure with clear step-by-step progression
- Added comprehensive concept explanations and learning goals
- Enhanced comments outside solution blocks with detailed guidance
- Used proper NBGrader syntax patterns from tensor module
- Added type hints and better function documentation
- Included detailed STEP-BY-STEP instructions and HINTS
- Split tests into separate graded cells (25 pts each)
- Added module summary with key concepts and next steps
- Maintained Python-first development workflow
- Creates professional-grade educational content
2025-07-12 15:00:12 -04:00
Vijay Janapa Reddi
873539b552 Enhance setup assignment with two-part system configuration
- Split into personal_info() and system_info() functions (50 pts each)
- personal_info(): Student's personal configuration (name, email, institution, etc.)
- system_info(): System queries using sys, platform, psutil modules
- Teaches students to query real system information (Python version, platform, CPU, memory)
- Comprehensive comments outside SOLUTION blocks guide implementation
- Proper NBGrader syntax with solution blocks and hidden tests
- Both functions become part of tinytorch package after export
- Creates useful personalized TinyTorch installation with system diagnostics
2025-07-12 14:48:54 -04:00
Vijay Janapa Reddi
8d20b97869 Simplify setup assignment to single system_info function
- Reduced from 4 problems to 1 simple function
- Function returns personalized TinyTorch configuration dictionary
- Teaches NBGrader workflow with solution blocks and hidden tests
- Creates something useful - personalized tinytorch.system_info() function
- Perfect for learning the implement → test → export workflow
- Single function worth 100 points with comprehensive testing
- Maintains instructor mark scheme for grading guidance
2025-07-12 14:28:36 -04:00
Vijay Janapa Reddi
ccac3e5f6e Rewrite setup assignment to focus on student information configuration
- Simplified to 4 core problems: student profile, email validation, environment check, configuration test
- Changed from complex programming tasks to simple configuration validation
- Used proper NBGrader syntax with ### BEGIN SOLUTION ### and ### BEGIN HIDDEN TESTS ###
- Added instructor mark schemes with point allocation and deduction guidelines
- Focused on TinyTorch-relevant setup tasks: configuring student info and validating environment
- Reduced from 95 to 100 points with better balanced distribution (40+20+20+20)
- Uses instructor's actual information as example template
- Maintains comprehensive educational content while being much more focused
2025-07-12 14:20:17 -04:00
Vijay Janapa Reddi
defc23b9e1 Convert setup assignment to proper NBGrader autograding format
- Convert from complex nbgrader metadata to simple 'nbgrader: grade, solution' format
- Add inline test blocks with 'nbgrader: tests' directives
- Remove separate test files - use inline tests instead
- Follow the jupytext percent format with NBGrader directives
- Maintain comprehensive educational content and hints
- Clean up generated notebooks (Python-first development)
- Ready for NBGrader autograding workflow
2025-07-12 14:12:25 -04:00
Vijay Janapa Reddi
1ce431c0f3 Complete comprehensive assignment template with enhanced documentation
🎯 COMPREHENSIVE ASSIGNMENT TEMPLATE READY FOR ALL MODULES

## Enhanced Educational Features
- Clear learning objectives with checkboxes
- Problem overview table (points, concepts, difficulty)
- Step-by-step workflow guidance
- General tips for student success

## Rich Problem Documentation
- Goal statements for each problem
- Detailed requirements with visual indicators
- Approach & hints sections with numbered steps
- Expected behavior with concrete examples
- Common pitfalls warnings
- Quick test suggestions for immediate feedback

## Technical Excellence
- Multiple solution blocks demonstration (Problem 2)
- Proper error handling patterns
- Progressive complexity: Easy → Medium → Hard
- Object-oriented programming examples
- Comprehensive integration testing (25 points)

## Assessment Quality
- 95 total points across 6 well-balanced problems
- Real-world applicable skills (file I/O, error handling, OOP)
- Immediate testing and feedback opportunities

## Workflow Integration
 Student Experience: Clear, guided, educational
 NBGrader Autograding: 20/20 tests pass (100%)
 NBDev Export: All functions export correctly
 Integration Testing: Complete workflow verified
 Python-first Development: Clean .py source files

## Multiple Solution Blocks Example
Problem 2 demonstrates NBGrader's step-by-step guidance:
- Step 1: Add 2 to each variable (separate solution block)
- Step 2: Sum results (separate solution block)
- Step 3: Multiply by 10 (separate solution block)

This template serves as the foundation for all future TinyTorch assignments,
ensuring consistent quality, comprehensive documentation, and excellent
student learning experience.
2025-07-12 14:00:54 -04:00
Vijay Janapa Reddi
6b9eb6dcaa Clean up development workflow - remove .ipynb files from source
- Remove setup_dev.ipynb (development artifact)
- Remove 00_setup.ipynb (generated student assignment)
- Follow Python-first development workflow: .py files are source of truth
- .ipynb files should only be generated when ready for NBGrader work
- Clean separation: develop in .py, generate .ipynb on demand
2025-07-12 12:50:01 -04:00
Vijay Janapa Reddi
84c4f54dd5 Add multiple solution blocks example to NBGrader assignment
- Add complex_calculation() function demonstrating multiple solution blocks within single function
- Shows how NBGrader can guide students through step-by-step implementation
- Each solution block replaced with '# YOUR CODE HERE' + 'raise NotImplementedError()' in student version
- Update total points from 85 to 95 to account for new 10-point problem
- Add comprehensive test coverage for multi-step function
- Demonstrate educational pattern: Step 1 → Step 2 → Step 3 within one function
- Perfect example of NBGrader's guided learning capabilities
2025-07-12 12:47:30 -04:00
Vijay Janapa Reddi
3d81f76897 Clean up stale documentation - remove outdated workflow patterns
- Remove 5 outdated development guides that contradicted clean NBGrader/nbdev architecture
- Update all documentation to reflect assignments/ directory structure
- Remove references to deprecated #| hide approach and old command patterns
- Ensure clean separation: NBGrader for assignments, nbdev for package export
- Update README, Student Guide, and Instructor Guide with current workflows
2025-07-12 12:36:31 -04:00
Vijay Janapa Reddi
83fb269d9f Complete migration from modules/ to assignments/source/ structure
- Migrated all Python source files to assignments/source/ structure
- Updated nbdev configuration to use assignments/source as nbs_path
- Updated all tito commands (nbgrader, export, test) to use new structure
- Fixed hardcoded paths in Python files and documentation
- Updated config.py to use assignments/source instead of modules
- Fixed test command to use correct file naming (short names vs full module names)
- Regenerated all notebook files with clean metadata
- Verified complete workflow: Python source → NBGrader → nbdev export → testing

All systems now working: NBGrader (14 source assignments, 1 released), nbdev export (7 generated files), and pytest integration.

The modules/ directory has been retired and replaced with standard NBGrader structure.
2025-07-12 12:06:56 -04:00
Vijay Janapa Reddi
9b94b588d2 Perfect NBGrader Setup Complete - Python-First Workflow
🎯 NBGRADER STRUCTURE IMPLEMENTED:
- Added proper NBGrader cell metadata to modules/00_setup/setup_dev.py
- Solution cells: nbgrader={'solution': true, 'locked': false}
- Test cells: nbgrader={'grade': true, 'locked': true, 'points': X}
- Proper grade_id for each cell for tracking

🧹 CLEAN STUDENT ASSIGNMENTS:
- No hidden instructor solutions in student version
- Only TODO stubs with clear instructions and hints
- NBGrader automatically replaces with 'YOUR CODE HERE'
- Proper point allocation: hello_tinytorch (3pts), add_numbers (2pts), SystemInfo (5pts)

🔧 WORKING WORKFLOW VERIFIED:
1. Edit modules/XX/XX_dev.py (Python source)
2. tito nbgrader generate XX (Python → Jupyter with NBGrader metadata)
3. tito nbgrader release XX (Clean student version generated)
4. Students work on assignments/release/XX/XX.ipynb
5. tito nbgrader collect/autograde for grading

 TESTED COMPONENTS:
- Python file with proper Jupytext headers 
- NBGrader cell metadata generation 
- Student assignment generation 
- Clean TODO stubs without solutions 
- Release process working 

🎓 EDUCATIONAL STRUCTURE:
- Clear learning objectives and explanations
- Step-by-step TODO instructions with hints
- Immediate testing with auto-graded cells
- Progressive difficulty (functions → classes → optional challenges)
- Real-world context and examples

Perfect implementation of Python-first development with NBGrader compliance
2025-07-12 11:37:39 -04:00
Vijay Janapa Reddi
04616ba1db 🐍 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
2025-07-12 11:31:11 -04:00
Vijay Janapa Reddi
b5cd73cfb8 🔄 Restore NBGrader workflow and clean up remaining artifacts
 NBGRADER WORKFLOW RESTORED:
- Restored assignments/ directory with 6 source assignments
- Restored nbgrader_config.py and gradebook.db
- Restored tito/commands/nbgrader.py for full NBGrader integration
- Restored bin/generate_student_notebooks.py

🧹 CLEANUP COMPLETED:
- Removed outdated tests/ directory (less comprehensive than module tests)
- Cleaned up Python cache files (__pycache__)
- Removed .pytest_cache directory
- Preserved all essential functionality

📚 DOCUMENTATION UPDATED:
- Added NBGrader workflow to INSTRUCTOR_GUIDE.md
- Updated README.md with NBGrader integration info
- Clear instructor workflow: Create solutions → Generate student versions → Release → Grade

 VERIFIED WORKING:
- tito nbgrader generate 00_setup 
- tito nbgrader status 
- tito system doctor 
- Module tests still pass 

🎯 INSTRUCTOR WORKFLOW NOW COMPLETE:
1. Create instructor solutions in modules/XX/XX_dev.py
2. Generate student versions: tito nbgrader generate XX
3. Release assignments: tito nbgrader release XX
4. Collect & grade: tito nbgrader collect XX && tito nbgrader autograde XX

Repository now properly supports full instructor → student workflow with NBGrader
?
2025-07-12 11:26:44 -04:00
Vijay Janapa Reddi
27208e3492 🏗️ Restructure repository for optimal student/instructor experience
- Move development artifacts to development/archived/ directory
- Remove NBGrader artifacts (assignments/, testing/, gradebook.db, logs)
- Update root README.md to match actual repository structure
- Provide clear navigation paths for instructors and students
- Remove outdated documentation references
- Clean root directory while preserving essential files
- Maintain all functionality while improving organization

Repository is now optimally structured for classroom use with clear entry points:
- Instructors: docs/INSTRUCTOR_GUIDE.md
- Students: docs/STUDENT_GUIDE.md
- Developers: docs/development/

 All functionality verified working after restructuring
2025-07-12 11:17:36 -04:00
Vijay Janapa Reddi
77150be3a6 Module 00_setup migration: Core functionality complete, NBGrader architecture issue discovered
 COMPLETED:
- Instructor solution executes perfectly
- NBDev export works (fixed import directives)
- Package functionality verified
- Student assignment generation works
- CLI integration complete
- Systematic testing framework established

⚠️ CRITICAL DISCOVERY:
- NBGrader requires cell metadata architecture changes
- Current generator creates content correctly but wrong cell types
- Would require major rework of assignment generation pipeline

📊 STATUS:
- Core TinyTorch functionality:  READY FOR STUDENTS
- NBGrader integration: Requires Phase 2 rework
- Ready to continue systematic testing of modules 01-06

🔧 FIXES APPLIED:
- Added #| export directive to imports in enhanced modules
- Fixed generator logic for student scaffolding
- Updated testing framework and documentation
2025-07-12 09:08:45 -04:00