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

Maximilian Albert maximilian.albert at gmail.com
Sun May 3 22:55:04 EDT 2015


Incidentally, I needed precisely this functionality for a project I'm
currently working on (where I'm generating a bunch of analysis notebooks
from a "template" notebook into which I inject a couple of
analysis-specific cells). I have a PR for this locally, but wanted to hold
off submitting it until the IPyhon repo split is over. Happy to submit it
when that's done (btw, is there a rough ETA for it?), or leave it to
tritemio who mentions in issue #8266 that he also has one.

Cheers,
Max


2015-05-04 3:41 GMT+01:00 Thomas Kluyver <takowl at gmail.com>:

> 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
>>
>>
>
> _______________________________________________
> 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/20150504/314abc0c/attachment.html>


More information about the IPython-dev mailing list