##// END OF EJS Templates
set some topics on IOPub messages...
MinRK -
Show More
@@ -10,7 +10,7 b' from session import extract_header, Session'
10 10 class ZMQDisplayHook(object):
11 11 """A simple displayhook that publishes the object's repr over a ZeroMQ
12 12 socket."""
13 topic=None
13 topic=b'pyout'
14 14
15 15 def __init__(self, session, pub_socket):
16 16 self.session = session
@@ -44,6 +44,7 b' class OutStream(object):'
44 44 self.session = session
45 45 self.pub_socket = pub_socket
46 46 self.name = name
47 self.topic = b'stream.' + py3compat.cast_bytes(name)
47 48 self.parent_header = {}
48 49 self._new_buffer()
49 50 self._buffer_lock = threading.Lock()
@@ -61,7 +61,7 b' class ZMQDisplayPublisher(DisplayPublisher):'
61 61 session = Instance(Session)
62 62 pub_socket = Instance(SocketABC)
63 63 parent_header = Dict({})
64 topic = CBytes(b'displaypub')
64 topic = CBytes(b'display_data')
65 65
66 66 def set_parent(self, parent):
67 67 """Set the parent for outbound messages."""
General Comments 0
You need to be logged in to leave comments. Login now