Exemplo n.º 1
0
    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)
Exemplo n.º 2
0
 def input(self, string, parent=None):
     msg = input_reply(string, parent=parent)
     self._send('stdin', msg)