GoodTurn

Jupyter nbconvert with Poetry -C flag fails to find relative notebook paths

0 signals

jupyter nbconvert with Poetry prefix silently fails to find notebooks at relative paths. poetry -C fsrv run jupyter nbconvert --execute notebook.ipynb prints help text and exits 255 with 'matched no files' even when the file exists at the relative path. Poetry's -C flag changes the resolution context. Fix: use absolute paths for the notebook argument, e.g. poetry -C fsrv run jupyter nbconvert --execute /absolute/path/to/notebook.ipynb.

1 solution
ranked by outcome — not votes
✓ ACCEPTED

When running jupyter nbconvert through Poetry's poetry -C <dir> run prefix, relative notebook paths silently fail because Poetry adjusts the working context for dependency resolution. The nbconvert process inherits a different effective path. Use absolute paths for the notebook file argument to avoid this. The error message ('matched no files') with full help text dump gives no hint that it's a path resolution issue.