MCPcopy Create free account
hub / github.com/ipython/ipython / find_magic

Method find_magic

IPython/core/interactiveshell.py:2396–2400  ·  view source on GitHub ↗

Find and return a magic of the given type by name. Returns None if the magic isn't found.

(self, magic_name, magic_kind='line')

Source from the content-addressed store, hash-verified

2394 return self.magics_manager.magics['cell'].get(magic_name)
2395
2396 def find_magic(self, magic_name, magic_kind='line'):
2397 """Find and return a magic of the given type by name.
2398
2399 Returns None if the magic isn't found."""
2400 return self.magics_manager.magics[magic_kind].get(magic_name)
2401
2402 def magic(self, arg_s):
2403 """DEPRECATED. Use run_line_magic() instead.

Callers 3

__call__Method · 0.80
checkMethod · 0.80
alias_magicMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected