From 9fa3ea2bf41b1fa79719dfe223520fbf77271f3b 2014-10-07 22:21:17 From: Min RK Date: 2014-10-07 22:21:17 Subject: [PATCH] Merge pull request #6646 from ngoldbaum/iopubfix Updating iopubwatcher.py to query for 'text' instead 'data' in the message dict --- diff --git a/examples/Parallel Computing/iopubwatcher.py b/examples/Parallel Computing/iopubwatcher.py index db3679e..26842d0 100644 --- a/examples/Parallel Computing/iopubwatcher.py +++ b/examples/Parallel Computing/iopubwatcher.py @@ -59,7 +59,7 @@ def main(connection_file): # stdout/stderr # stream names are in msg['content']['name'], if you want to handle # them differently - print("%s: %s" % (topic, msg['content']['data'])) + print("%s: %s" % (topic, msg['content']['text'])) elif msg['msg_type'] == 'pyerr': # Python traceback c = msg['content']