Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

run_cell(exec_lines) now called with 'store_history=False'

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...
commit 74721c4d5939d98872f3074f7d0451b28f11274c 1 parent 76f17ab
@minrk minrk authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 IPython/frontend/terminal/ipapp.py
View
4 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)
Please sign in to comment.
Something went wrong with that request. Please try again.