Skip to content

edit magic broken in head #1837

@juliantaylor

Description

@juliantaylor

a82dc7e

caused by 31bcb3c

In [1]: %edit
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
<ipython-input-1-107a4967e4b8> in <module>()
----> 1 get_ipython().magic(u'edit')

/usr/lib/python2.7/dist-packages/IPython/core/interactiveshell.pyc in magic(self, arg_s)
   2129         magic_name, _, magic_arg_s = arg_s.partition(' ')
   2130         magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2131         return self.run_line_magic(magic_name, magic_arg_s)
   2132 
   2133     #-------------------------------------------------------------------------

/usr/lib/python2.7/dist-packages/IPython/core/interactiveshell.pyc in run_line_magic(self, magic_name, line)
   2055                 args.append(sys._getframe(stack_depth).f_locals)
   2056             with self.builtin_trap:
-> 2057                 result = fn(*args)
   2058             return result
   2059 

/usr/lib/python2.7/dist-packages/IPython/core/magics/code.pyc in edit(self, parameter_s, last_call)

/usr/lib/python2.7/dist-packages/IPython/core/magic.pyc in <lambda>(f, *a, **k)
    188     # but it's overkill for just that one bit of state.
    189     def magic_deco(arg):
--> 190         call = lambda f, *a, **k: f(*a, **k)
    191 
    192         if callable(arg):

/usr/lib/python2.7/dist-packages/IPython/core/magics/code.pyc in edit(self, parameter_s, last_call)
    464 
    465         try:
--> 466             filename, lineno, is_temp = self._find_edit_target(args, opts, last_call)
    467         except MacroToEdit as e:
    468             self._edit_macro(args, e.args[0])

TypeError: _find_edit_target() takes exactly 4 arguments (3 given)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions