A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/ipython/ipython/issues/1837/ below:

edit magic broken in head · Issue #1837 · ipython/ipython · GitHub

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)

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4