Commit Graph

4 Commits

Author SHA1 Message Date
Vijay Janapa Reddi
bb5dd7a9f6 fix(export): use nbdev Python API instead of CLI for reliable export
The nbdev_export CLI was not reading settings.ini correctly in CI,
causing exports to silently fail. Using nbdev.export.nb_export()
Python API directly with explicit lib_path ensures exports work
reliably regardless of environment.
2026-01-29 14:28:40 -05:00
Vijay Janapa Reddi
2ec60a6f5c fix(export): use python -m nbdev.export instead of nbdev_export command
The nbdev_export command wasn't in PATH in CI. Using sys.executable
with -m nbdev.export ensures we use the same Python environment that's
running tito, which is more reliable across different environments.

Fixed in:
- tito/commands/dev/export.py (both _export_all_modules and _run_nbdev_export)
- tito/commands/module/workflow.py (_export_notebook)
2026-01-29 14:19:26 -05:00
Vijay Janapa Reddi
2546b54bba fix(export): handle running from tinytorch directory
The directory check was looking for tinytorch/tinytorch/__init__.py
when running from the tinytorch directory (as CI does). Fixed to check
for either repo root or tinytorch project directory structure.
2026-01-29 13:53:22 -05:00
Vijay Janapa Reddi
fd7c0f5e2f fix(tinytorch): tito module complete no longer overwrites student notebooks
- Create tito dev export for developers (rebuilds src→notebook→package)
- Fix tito module complete to only export notebook→package (preserves student work)
- Remove deprecated tito src command
- Add module name normalization to dev export (supports 01 shorthand)
2026-01-14 12:51:02 -05:00