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):