##// END OF EJS Templates
Using session.send in DisplayPublisher now.
Brian Granger -
Show More
@@ -91,11 +91,14 b' class ZMQDisplayPublisher(DisplayPublisher):'
91 if metadata is None:
91 if metadata is None:
92 metadata = {}
92 metadata = {}
93 self._validate_data(source, data, metadata)
93 self._validate_data(source, data, metadata)
94 msg = self.session.msg(u'display_data', {}, parent=self.parent_header)
94 content = {}
95 msg['content']['source'] = source
95 content['source'] = source
96 msg['content']['data'] = data
96 content['data'] = data
97 msg['content']['metadata'] = metadata
97 content['metadata'] = metadata
98 self.pub_socket.send_json(msg)
98 self.session.send(
99 self.pub_socket, u'display_data', content,
100 parent=self.parent_header
101 )
99
102
100
103
101 class ZMQInteractiveShell(InteractiveShell):
104 class ZMQInteractiveShell(InteractiveShell):
General Comments 0
You need to be logged in to leave comments. Login now