[IPython-dev] Propagate errors with ipython nbconvert --execute?

Nathan Goldbaum nathan12343 at gmail.com
Sun May 3 22:50:50 EDT 2015


Runipy will halt on exceptions:

https://github.com/paulgb/runipy

On Sunday, May 3, 2015, Michael Waskom <mwaskom at stanford.edu> wrote:

> Hi,
>
> ipython nbconvert has, of late, the --execute flag, which makes it handy
> to work with notebooks as documentation source without having to keep the
> output in a git repository.
>
> However, when invoked as specified in the version 3 release notes:
>
> ipython nbconvert --to notebook --inplace --execute my_notebook.ipynb
>
> the converter trundles right along past exceptions raised in the code
> blocks.
>
> It would be helpful if there were some option so that the executable would
> return with a nonzero error code when an exception was raised so problems
> more easily detected. Is that possible? I didn't see any obvious arguments
> to that flag when I looked at the help, but it's a complicated tool.
>
> Thanks!
> Michael
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20150503/c0a601d5/attachment.html>


More information about the IPython-dev mailing list