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

Method find_cell_magic

IPython/core/interactiveshell.py:2390–2394  ·  view source on GitHub ↗

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

(self, magic_name)

Source from the content-addressed store, hash-verified

2388 return self.magics_manager.magics['line'].get(magic_name)
2389
2390 def find_cell_magic(self, magic_name):
2391 """Find and return a cell magic by name.
2392
2393 Returns None if the magic isn't found."""
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.

Callers 4

_ofindMethod · 0.95
run_line_magicMethod · 0.95
run_cell_magicMethod · 0.95

Calls

no outgoing calls

Tested by 1