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
Seems like your notebook file has an image/svg+xml output that is not showing up when nbval runs the notebook.
In my case it was:
Traceback: Missing output fields from running code: {'stderr'}
because a pair of stderr.write calls in one cell were ending up as separate outputs when run via Papermill, but were merged into one output when run interactively or via py.test --nbval.
It is triggered when the re-run cell's outputs don't match the notebook file on disk.
The pytest/nbval output specifices which code cell index the error occurred at. Here's an easy way to inspect a given cell (including outputs / metadata):
Hi there,
I encountered failed tests of my notebook for cells that produce plots.
I have been getting an error:
What is the best way to avoid this type of errors ?
The text was updated successfully, but these errors were encountered: