##// END OF EJS Templates
track display data in the parallel Client
MinRK -
Show More
@@ -97,6 +97,7 b' class Metadata(dict):'
97 'pyerr' : None,
97 'pyerr' : None,
98 'stdout' : '',
98 'stdout' : '',
99 'stderr' : '',
99 'stderr' : '',
100 'outputs' : [],
100 }
101 }
101 self.update(md)
102 self.update(md)
102 self.update(dict(*args, **kwargs))
103 self.update(dict(*args, **kwargs))
@@ -773,8 +774,13 b' class Client(HasTraits):'
773 md.update({'pyerr' : self._unwrap_exception(content)})
774 md.update({'pyerr' : self._unwrap_exception(content)})
774 elif msg_type == 'pyin':
775 elif msg_type == 'pyin':
775 md.update({'pyin' : content['code']})
776 md.update({'pyin' : content['code']})
777 elif msg_type == 'display_data':
778 md['outputs'].append(content.get('data'))
779 elif msg_type == 'pyout':
780 md['pyout'] = content.get('data')
776 else:
781 else:
777 md.update({msg_type : content.get('data', '')})
782 # unhandled msg_type (status, etc.)
783 pass
778
784
779 # reduntant?
785 # reduntant?
780 self.metadata[msg_id] = md
786 self.metadata[msg_id] = md
General Comments 0
You need to be logged in to leave comments. Login now