[IPython-dev] parallel ouptut before exception

Nathan Goldbaum nathan12343 at gmail.com
Thu Jun 18 16:01:57 EDT 2015


Do you get output if you add "sys.stdout.flush()" before raising the
ValueError?



On Thu, Jun 18, 2015 at 12:59 PM, David Froger <david.froger.ml at mailoo.org>
wrote:

> Hello,
>
> I have a IPython 3.1.0 Python 2.7 notebook containing these 2 cells:
>
>     from IPython.parallel import Client
>     client = Client(profile="mpi") # cluster was started with 4 procs"
>
>     %%px --block
>     print "message"
>     raise ValueError, "This is a value error"
>
> For each engine the exception is displayed in the notebook, but I can't
> get the
> "message". (I tried %pxresult, it displays only the exceptions too).
>
> How to display the standard output (and standard error)?
>
> Thanks,
> David
> _______________________________________________
> 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/20150618/496fa237/attachment.html>


More information about the IPython-dev mailing list