##// END OF EJS Templates
Fixing display publisher (Python 3)
Henry Fredrick Schreiner -
Show More
@@ -114,11 +114,11 b' class CapturingDisplayPublisher(DisplayPublisher):'
114 """A DisplayPublisher that stores"""
114 """A DisplayPublisher that stores"""
115 outputs = List()
115 outputs = List()
116
116
117 def publish(self, data, metadata=None, source=None):
117 def publish(self, data, metadata=None, source=None, *, transient=None, update=False):
118 self.outputs.append((data, metadata))
118 self.outputs.append((data, metadata))
119
119
120 def clear_output(self, wait=False):
120 def clear_output(self, wait=False):
121 super(CapturingDisplayPublisher, self).clear_output(wait)
121 super(CapturingDisplayPublisher, self).clear_output(wait)
122
122
123 # empty the list, *do not* reassign a new list
123 # empty the list, *do not* reassign a new list
124 del self.outputs[:]
124 del self.outputs[:]
General Comments 0
You need to be logged in to leave comments. Login now