def input(self, string, parent=None): """Send a string of raw input to the kernel. This should only be called in response to the kernel sending an ``input_request`` message on the stdin channel. """ msg = input_reply(string, parent=parent) self.messaging.send('stdin', msg)
def input(self, string, parent=None): msg = input_reply(string, parent=parent) self._send('stdin', msg)