environment/lib/python2.7/site-packages/IPython/frontend/qt/console/console_widget.py
def _set_input_buffer(self, string):
        """ Sets the text in the input buffer.

        If the console is currently executing, this call has no *immediate*
        effect. When the execution is finished, the input buffer will be updated
        appropriately.
        """
        # If we're executing, store the text for later.
        if self._executing:
            self._input_buffer_pending = string
            return

        # Remove old text.
        cursor = self._get_end_cursor()
        cursor.beginEditBlock()
        cursor.setPosition(self._prompt_pos, QtGui.QTextCursor.KeepAnchor)
        cursor.removeSelectedText()

        # Insert new text with continuation prompts.
        self._insert_plain_text_into_buffer(self._get_prompt_cursor(), string)
        cursor.endEditBlock()
        self._control.moveCursor(QtGui.QTextCursor.End)
def _set_input_buffer(self, string):
        # If we're executing, store the text for later.
        if self._executing:
            self._input_buffer_pending = string
            return

        # Remove old text.
        cursor = self._get_end_cursor()
        cursor.beginEditBlock()
        cursor.setPosition(self._prompt_pos, QtGui.QTextCursor.KeepAnchor)
        cursor.removeSelectedText()

        # Insert new text with continuation prompts.
        self._insert_plain_text_into_buffer(self._get_prompt_cursor(), string)
        cursor.endEditBlock()
        self._control.moveCursor(QtGui.QTextCursor.End)
def _set_input_buffer ( self , string ) : # If we're executing, store the text for later. if self . _executing : self . _input_buffer_pending = string return # Remove old text. cursor = self . _get_end_cursor ( ) cursor . beginEditBlock ( ) cursor . setPosition ( self . _prompt_pos , QtGui . QTextCursor . KeepAnchor ) cursor . removeSelectedText ( ) # Insert new text with continuation prompts. self . _insert_plain_text_into_buffer ( self . _get_prompt_cursor ( ) , string ) cursor . endEditBlock ( ) self . _control . moveCursor ( QtGui . QTextCursor . End )
Sets the text in the input buffer.

        If the console is currently executing, this call has no *immediate*
        effect. When the execution is finished, the input buffer will be updated
        appropriately.
Sets the text in the input buffer .