[IPython-dev] Why are stdout and stderr sent to /dev/null by default in kernels?

MinRK benjaminrk at gmail.com
Thu Jul 16 13:27:09 EDT 2015


If you are writing to sys.stdout at startup, it likely is going over zmq
with no receivers and disappearing. You can use sys.__stdout__ to always
refer to the process stdout, though.

On Thu, Jul 16, 2015 at 10:01 AM, ssanderson <ssanderson at quantopian.com>
wrote:

> Ah.  I think I misread the following in ipkernelapp.py:
>
>
>
> I interpreted that as setting no_stdout and no_stderr to True by default,
> but I realize now that it's just creating 'no-stdout' and 'no-stderr' flags
> that turn on those settings.
>
> Apologies for the noise.  I'll go find what's actually swallowing my stdout
> then...
>
> -Scott
>
>
>
>
> --
> View this message in context:
> http://python.6.x6.nabble.com/Why-are-stdout-and-stderr-sent-to-dev-null-by-default-in-kernels-tp5166925p5166937.html
> Sent from the IPython - Development mailing list archive at Nabble.com.
> _______________________________________________
> 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/20150716/38e0d691/attachment.html>


More information about the IPython-dev mailing list