environment/lib/python2.7/site-packages/IPython/frontend/qt/console/history_console_widget.py
def execute(self, source=None, hidden=False, interactive=False):
        """ Reimplemented to the store history.
        """
        if not hidden:
            history = self.input_buffer if source is None else source

        executed = super(HistoryConsoleWidget, self).execute(
            source, hidden, interactive)

        if executed and not hidden:
            # Save the command unless it was an empty string or was identical
            # to the previous command.
            history = history.rstrip()
            if history and (not self._history or self._history[-1] != history):
                self._history.append(history)

            # Emulate readline: reset all history edits.
            self._history_edits = {}

            # Move the history index to the most recent item.
            self._history_index = len(self._history)

        return executed
def execute(self, source=None, hidden=False, interactive=False):
        if not hidden:
            history = self.input_buffer if source is None else source

        executed = super(HistoryConsoleWidget, self).execute(
            source, hidden, interactive)

        if executed and not hidden:
            # Save the command unless it was an empty string or was identical
            # to the previous command.
            history = history.rstrip()
            if history and (not self._history or self._history[-1] != history):
                self._history.append(history)

            # Emulate readline: reset all history edits.
            self._history_edits = {}

            # Move the history index to the most recent item.
            self._history_index = len(self._history)

        return executed
def execute ( self , source = None , hidden = False , interactive = False ) : if not hidden : history = self . input_buffer if source is None else source executed = super ( HistoryConsoleWidget , self ) . execute ( source , hidden , interactive ) if executed and not hidden : # Save the command unless it was an empty string or was identical # to the previous command. history = history . rstrip ( ) if history and ( not self . _history or self . _history [ - 1 ] != history ) : self . _history . append ( history ) # Emulate readline: reset all history edits. self . _history_edits = { } # Move the history index to the most recent item. self . _history_index = len ( self . _history ) return executed
Reimplemented to the store history.
Reimplemented to the store history .