From 8488a166a4803ffa1f1c6f1cc125ff264b7a2a28 2015-01-15 04:24:01 From: Min RK Date: 2015-01-15 04:24:01 Subject: [PATCH] stop %run foo.ipynb on exception matches `Run All` behavior --- diff --git a/IPython/core/interactiveshell.py b/IPython/core/interactiveshell.py index 45e37fd..a141900 100644 --- a/IPython/core/interactiveshell.py +++ b/IPython/core/interactiveshell.py @@ -2703,7 +2703,9 @@ 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, silent=True, shell_futures=shell_futures) + result = self.run_cell(cell, silent=True, shell_futures=shell_futures) + if not result.success: + break except: self.showtraceback() warn('Unknown failure executing file: <%s>' % fname)