environment/lib/python2.7/site-packages/IPython/frontend/qt/console/frontend_widget.py
def _handle_input_request(self, msg):
        """ Handle requests for raw_input.
        """
        self.log.debug("input: %s", msg.get('content', ''))
        if self._hidden:
            raise RuntimeError('Request for raw input during hidden execution.')

        # Make sure that all output from the SUB channel has been processed
        # before entering readline mode.
        self.kernel_manager.sub_channel.flush()

        def callback(line):
            self.kernel_manager.stdin_channel.input(line)
        if self._reading:
            self.log.debug("Got second input request, assuming first was interrupted.")
            self._reading = False
        self._readline(msg['content']['prompt'], callback=callback)
def _handle_input_request(self, msg):
        self.log.debug("input: %s", msg.get('content', ''))
        if self._hidden:
            raise RuntimeError('Request for raw input during hidden execution.')

        # Make sure that all output from the SUB channel has been processed
        # before entering readline mode.
        self.kernel_manager.sub_channel.flush()

        def callback(line):
            self.kernel_manager.stdin_channel.input(line)
        if self._reading:
            self.log.debug("Got second input request, assuming first was interrupted.")
            self._reading = False
        self._readline(msg['content']['prompt'], callback=callback)
def _handle_input_request ( self , msg ) : self . log . debug ( "input: %s" , msg . get ( 'content' , '' ) ) if self . _hidden : raise RuntimeError ( 'Request for raw input during hidden execution.' ) # Make sure that all output from the SUB channel has been processed # before entering readline mode. self . kernel_manager . sub_channel . flush ( ) def callback ( line ) : self . kernel_manager . stdin_channel . input ( line ) if self . _reading : self . log . debug ( "Got second input request, assuming first was interrupted." ) self . _reading = False self . _readline ( msg [ 'content' ] [ 'prompt' ] , callback = callback )
Handle requests for raw_input.
Handle requests for raw_input .