-
Notifications
You must be signed in to change notification settings - Fork 449
Extend PapermillExecutionError to carry the executed output notebook object
#873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
c1cff52
9284541
d183777
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -211,6 +211,7 @@ def raise_for_execution_errors(nb, output_path): | |
| ename=output.ename, | ||
| evalue=output.evalue, | ||
| traceback=output.traceback, | ||
| output_notebook=nb, | ||
| ) | ||
|
Comment on lines
211
to
215
|
||
| break | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PapermillExecutionErroris explicitly tested as pickle/unpickleable (seepapermill/tests/test_exceptions.py). Becauseoutput_notebookisn’t included inargs(and there’s no custom__reduce__), pickling an error that hasoutput_notebookset will silently drop the notebook on unpickle. Either includeoutput_notebookin the pickled state (e.g., viaargsor__reduce__) or document/ensure it’s intentionally not preserved.