From b1300d14ceeb7cbafbf08a90e0483469feca5cde 2013-08-13 10:40:56 From: Jason Grout Date: 2013-08-13 10:40:56 Subject: [PATCH] Transform code before %prun/%%prun runs --- diff --git a/IPython/core/magics/execution.py b/IPython/core/magics/execution.py index 0e22375..4e6d9ae 100644 --- a/IPython/core/magics/execution.py +++ b/IPython/core/magics/execution.py @@ -181,6 +181,7 @@ python-profiler package from non-free.""") list_all=True, posix=False) if cell is not None: arg_str += '\n' + cell + arg_str = self.shell.input_splitter.transform_cell(arg_str) return self._run_with_profiler(arg_str, opts, self.shell.user_ns) def _run_with_profiler(self, code, opts, namespace):