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

Thomas Kluyver takowl at gmail.com
Sun May 3 22:41:36 EDT 2015


This would be a valuable feature for someone to add.

https://github.com/ipython/ipython/issues/8286

On 3 May 2015 at 17:46, 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
>
> _______________________________________________
> IPython-dev mailing list
> IPython-dev at scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ipython-dev/attachments/20150503/9c9070f4/attachment.html>


More information about the IPython-dev mailing list