From 207ac6a35335c956acbd6d19969c5e55a01163fe 2012-05-31 19:40:36 From: MinRK Date: 2012-05-31 19:40:36 Subject: [PATCH] AsyncResult.display_outputs should only print stdout/err if non-empty (single engine) --- diff --git a/IPython/parallel/client/asyncresult.py b/IPython/parallel/client/asyncresult.py index 1bae6f6..1e67571 100644 --- a/IPython/parallel/client/asyncresult.py +++ b/IPython/parallel/client/asyncresult.py @@ -391,9 +391,10 @@ class AsyncResult(object): def _display_single_result(self): - - print self.stdout - print >> sys.stderr, self.stderr + if self.stdout: + print self.stdout + if self.stderr: + print >> sys.stderr, self.stderr try: get_ipython()