From 7d1bdfaff74a040b88d1726b47ced673f227bed1 2011-04-01 09:39:44 From: Thomas Kluyver Date: 2011-04-01 09:39:44 Subject: [PATCH] Do not store file contents in history when running a .ipy file. closes gh-328 --- diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index e97ceba..96b1c15 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -2068,7 +2068,7 @@ class InteractiveShell(Configurable, Magic): # 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)