From 5e7828390e0d2433f91d4857ba46690bb93888e2 2014-05-05 19:24:14 From: MinRK Date: 2014-05-05 19:24:14 Subject: [PATCH] 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. --- diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index 4c25c54..4ab5569 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -2600,7 +2600,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)