Open
Description
Hi all, I noticed the cell numbers reported by nbval are off by one from what you see in a jupyter notebook. Jupyter notebooks measure cell execution starting from 1, whereas nbval starts from 0. It would be a nice quality-of-life change to have the errors reported by nbval match up with the cell numbers in the notebook.
Here's an example notebook where I've generated output which doesn't match the expected output for the cell contents:
Notice that the cell number is 1 after freshly running the notebook from the beginning.
Here, pytest
fails as expected, but the failure is in Cell 0.
Metadata
Metadata
Assignees
Labels
No labels