From c1e3f4a610f857ef2297b38bd2c60de852a5b9c2 2012-06-03 05:14:24 From: Fernando Perez Date: 2012-06-03 05:14:24 Subject: [PATCH] Fix %edit which got broken in magics refactoring. Closes #1837. --- diff --git a/IPython/core/magics/code.py b/IPython/core/magics/code.py index 425cab7..b650561 100644 --- a/IPython/core/magics/code.py +++ b/IPython/core/magics/code.py @@ -468,7 +468,8 @@ class CodeMagics(Magics): opts,args = self.parse_options(parameter_s,'prxn:') try: - filename, lineno, is_temp = self._find_edit_target(args, opts, last_call) + filename, lineno, is_temp = self._find_edit_target(self.shell, + args, opts, last_call) except MacroToEdit as e: self._edit_macro(args, e.args[0]) return