[IPython-dev] Errors in ipython startup muted by Notebook?

MinRK benjaminrk at gmail.com
Wed Aug 6 17:11:36 EDT 2014

Yes, output from the IPython kernel is associated with the input that
caused it via a notion of a parent. In the notebook, each cell causes a
particular set of output. If output is received and not associated with a
cell on the page, it is discarded. Output from startup files has no parent,
and is thus discarded by the notebook. If we had a place to display
orphaned output, we could do this.

We could also consider sending output to sys.__stderr__ when parent=None,
which would mean that kernel output with no parent would at least go to the
terminal in which the kernel was started.


On Mon, Aug 4, 2014 at 12:03 PM, Petr Wolf <petr.wolf at gmail.com> wrote:

> Hi,
> as described on
> http://stackoverflow.com/questions/24942378/how-to-propagate-errors-out-of-ipython-profile-to-a-notebook,
> I wonder how to handle errors in IPython startup code.
> While the IPython console prints any errors right upfront, the Notebook
> app seems to silence them completely.
> That can be confusing (as some startup commands may have been executed and
> others may not) and counterproductive (as the information does not seem to
> be logged either).
> What is the best way to have errors propagated out of the profile, when
> using nootebook?
> Regards,
> Petr
> _______________________________________________
> 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/20140806/9b517440/attachment.html>

More information about the IPython-dev mailing list