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

Method find_magic

IPython/core/interactiveshell.py:2617–2621  ·  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

2615 return self.magics_manager.magics['cell'].get(magic_name)
2616
2617 def find_magic(self, magic_name, magic_kind='line'):
2618 """Find and return a magic of the given type by name.
2619
2620 Returns None if the magic isn't found."""
2621 return self.magics_manager.magics[magic_kind].get(magic_name)
2622
2623 #-------------------------------------------------------------------------
2624 # Things related to macros

Callers 3

__call__Method · 0.80
checkMethod · 0.80
alias_magicMethod · 0.80

Calls 1

getMethod · 0.80

Tested by

no test coverage detected