From f1425b8ca6ce9ef9935a141b0ccb0938be425c91 2020-05-09 14:40:44 From: palewire Date: 2020-05-09 14:40:44 Subject: [PATCH] Exceptions raised when executing notebooks via the %run magic command --- diff --git a/IPython/core/magics/execution.py b/IPython/core/magics/execution.py index fb2df90..61dc039 100644 --- a/IPython/core/magics/execution.py +++ b/IPython/core/magics/execution.py @@ -701,7 +701,7 @@ class ExecutionMagics(Magics): if filename.lower().endswith(('.ipy', '.ipynb')): with preserve_keys(self.shell.user_ns, '__file__'): self.shell.user_ns['__file__'] = filename - self.shell.safe_execfile_ipy(filename) + self.shell.safe_execfile_ipy(filename, raise_exceptions=True) return # Control the response to exit() calls made by the script being run