You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.The text was updated successfully, but these errors were encountered: