##// END OF EJS Templates
Don't send \r characters in zmqshell clear_ourput
jon -
Show More
@@ -274,9 +274,6 b' var IPython = (function (IPython) {'
274
274
275 // validate output data types
275 // validate output data types
276 json = this.validate_output(json);
276 json = this.validate_output(json);
277 // TODO: Why are we recieving these new line characters for no
278 // reason? They ruin everything.
279 if (json.output_type === 'stream' && !json.text.trim()) return;
280
277
281 // Clear the output if clear is queued.
278 // Clear the output if clear is queued.
282 var needs_height_reset = false;
279 var needs_height_reset = false;
@@ -90,11 +90,7 b' class ZMQDisplayPublisher(DisplayPublisher):'
90
90
91 def clear_output(self, wait=False):
91 def clear_output(self, wait=False):
92 content = dict(wait=wait)
92 content = dict(wait=wait)
93
94 print('\r', file=sys.stdout, end='')
95 print('\r', file=sys.stderr, end='')
96 self._flush_streams()
93 self._flush_streams()
97
98 self.session.send(
94 self.session.send(
99 self.pub_socket, u'clear_output', content,
95 self.pub_socket, u'clear_output', content,
100 parent=self.parent_header, ident=self.topic,
96 parent=self.parent_header, ident=self.topic,
General Comments 0
You need to be logged in to leave comments. Login now