environment/lib/python2.7/site-packages/IPython/frontend/qt/console/console_widget.py
def _get_input_buffer(self, force=False):
        """ The text that the user has entered entered at the current prompt.

        If the console is currently executing, the text that is executing will
        always be returned.
        """
        # If we're executing, the input buffer may not even exist anymore due to
        # the limit imposed by 'buffer_size'. Therefore, we store it.
        if self._executing and not force:
            return self._input_buffer_executing

        cursor = self._get_end_cursor()
        cursor.setPosition(self._prompt_pos, QtGui.QTextCursor.KeepAnchor)
        input_buffer = cursor.selection().toPlainText()

        # Strip out continuation prompts.
        return input_buffer.replace('\n' + self._continuation_prompt, '\n')
def _get_input_buffer(self, force=False):
        # If we're executing, the input buffer may not even exist anymore due to
        # the limit imposed by 'buffer_size'. Therefore, we store it.
        if self._executing and not force:
            return self._input_buffer_executing

        cursor = self._get_end_cursor()
        cursor.setPosition(self._prompt_pos, QtGui.QTextCursor.KeepAnchor)
        input_buffer = cursor.selection().toPlainText()

        # Strip out continuation prompts.
        return input_buffer.replace('\n' + self._continuation_prompt, '\n')
def _get_input_buffer ( self , force = False ) : # If we're executing, the input buffer may not even exist anymore due to # the limit imposed by 'buffer_size'. Therefore, we store it. if self . _executing and not force : return self . _input_buffer_executing cursor = self . _get_end_cursor ( ) cursor . setPosition ( self . _prompt_pos , QtGui . QTextCursor . KeepAnchor ) input_buffer = cursor . selection ( ) . toPlainText ( ) # Strip out continuation prompts. return input_buffer . replace ( '\n' + self . _continuation_prompt , '\n' )
The text that the user has entered entered at the current prompt.

        If the console is currently executing, the text that is executing will
        always be returned.
The text that the user has entered entered at the current prompt .