-
Notifications
You must be signed in to change notification settings - Fork 566
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
ExecutePreprocessor error display and save #119
Comments
I tried Any suggestion is appreciated. |
Previous PR #33 introduced the stop-on-error option via |
I think the problem is that by raising |
I hacked this PR #120 to includes the stack trace in the notebook (even with The implementation raises |
Closed by #120 |
In using nbconvert 4.0 to execute a notebook (many notebook) from a single "master" notebook.
What I'm executing is something like:
When there is an error in the executed notebook, I get this stack trace with the actual error message encoded in a unlegible way at the end:
I also get a similarly cryptic message in the terminal:
Moreover, the biggest issue is that saving the notebook (4th line) after the error does not save the stack trace like, so the error is hard to debug.
In IPython 3.x I used to monkey-patch
ExecutePreprocessor.preprocess_cell()
with:which gives me nicer error messages in the master notebook and the stack trace was saved in the executed notebook.
For the record, the error message before looked like:
How can I achieve the old behaviour?
Related issues: ipython/ipython#8286, #17
The text was updated successfully, but these errors were encountered: