def send_stream(self, text, stderr=False):
    ' enqueues a stdout or stderr message for the given cell\n        '
    stdfile = ('stderr' if stderr else 'stdout')
    content = {'name': stdfile, 'text': (text + '\n')}
    self.send_response(self.iopub_socket, 'stream', content)
enqueues a stdout or stderr message for the given cell
def send_stream(self, text, stderr=False):
    ' \n        '
    stdfile = ('stderr' if stderr else 'stdout')
    content = {'name': stdfile, 'text': (text + '\n')}
    self.send_response(self.iopub_socket, 'stream', content)