MCPcopy Index your code
hub / github.com/ipython/ipython / real_name

Function real_name

IPython/core/magic_arguments.py:201–207  ·  view source on GitHub ↗

Find the real name of the magic.

(magic_func)

Source from the content-addressed store, hash-verified

199
200
201def real_name(magic_func):
202 """ Find the real name of the magic.
203 """
204 magic_name = magic_func.__name__
205 if magic_name.startswith('magic_'):
206 magic_name = magic_name[len('magic_'):]
207 return getattr(magic_func, 'argcmd_name', magic_name)
208
209
210class ArgDecorator:

Callers 2

test_magic_argumentsFunction · 0.90
construct_parserFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_magic_argumentsFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…