Permalink
Browse files

Do not store file contents in history when running a .ipy file.

closes gh-328
  • Loading branch information...
1 parent eeb2163 commit 7d1bdfaff74a040b88d1726b47ced673f227bed1 @takluyver takluyver committed Apr 1, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 IPython/core/interactiveshell.py
View
2 IPython/core/interactiveshell.py
@@ -2068,7 +2068,7 @@ def safe_execfile_ipy(self, fname):
# raised in user code. It would be nice if there were
# versions of runlines, execfile that did raise, so
# we could catch the errors.
- self.run_cell(thefile.read())
+ self.run_cell(thefile.read(), store_history=False)
except:
self.showtraceback()
warn('Unknown failure executing file: <%s>' % fname)

0 comments on commit 7d1bdfa

Please sign in to comment.