From d451492c7337c77579cec8a8a921969c062cf0d8 2014-05-07 22:28:48 From: Thomas Kluyver Date: 2014-05-07 22:28:48 Subject: [PATCH] Backport PR #5788: run cells with `silent=True` in `%run nb.ipynb` - more consistent with running scripts - avoids a bunch of uncapturable `Out[n]: ` outputs when running a notebook. closes #5685 --- diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index 97efe87..7202f86 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -2601,7 +2601,7 @@ class InteractiveShell(SingletonConfigurable): # raised in user code. It would be nice if there were # versions of run_cell that did raise, so # we could catch the errors. - self.run_cell(cell, store_history=False, shell_futures=False) + self.run_cell(cell, silent=True, shell_futures=False) except: self.showtraceback() warn('Unknown failure executing file: <%s>' % fname)