diff --git a/IPython/frontend/terminal/ipapp.py b/IPython/frontend/terminal/ipapp.py index 46956ca849f..b5ed66ee3c5 100755 --- a/IPython/frontend/terminal/ipapp.py +++ b/IPython/frontend/terminal/ipapp.py @@ -570,7 +570,7 @@ def _run_exec_lines(self): try: self.log.info("Running code in user namespace: %s" % line) - self.shell.run_cell(line) + self.shell.run_cell(line, store_history=False) except: self.log.warn("Error in executing line in user " "namespace: %s" % line) @@ -615,7 +615,7 @@ def _run_cmd_line_code(self): try: self.log.info("Running code given at command line (-c): %s" % line) - self.shell.run_cell(line) + self.shell.run_cell(line, store_history=False) except: self.log.warn("Error in executing line in user namespace: %s" % line)