Skip to content

Commit

Permalink
run_cell(exec_lines) now called with 'store_history=False'
Browse files Browse the repository at this point in the history
This prevents config file defined exec_lines from showing up
in the history, and results in input counter always starting at 1

closes gh-125
closes gh-363
  • Loading branch information
minrk committed Apr 12, 2011
1 parent 76f17ab commit 74721c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions IPython/frontend/terminal/ipapp.py
Expand Up @@ -570,7 +570,7 @@ def _run_exec_lines(self):
try: try:
self.log.info("Running code in user namespace: %s" % self.log.info("Running code in user namespace: %s" %
line) line)
self.shell.run_cell(line) self.shell.run_cell(line, store_history=False)
except: except:
self.log.warn("Error in executing line in user " self.log.warn("Error in executing line in user "
"namespace: %s" % line) "namespace: %s" % line)
Expand Down Expand Up @@ -615,7 +615,7 @@ def _run_cmd_line_code(self):
try: try:
self.log.info("Running code given at command line (-c): %s" % self.log.info("Running code given at command line (-c): %s" %
line) line)
self.shell.run_cell(line) self.shell.run_cell(line, store_history=False)
except: except:
self.log.warn("Error in executing line in user namespace: %s" % self.log.warn("Error in executing line in user namespace: %s" %
line) line)
Expand Down

0 comments on commit 74721c4

Please sign in to comment.