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

Method find_cell_magic

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

2609 return self.magics_manager.magics['line'].get(magic_name)
2610
2611 def find_cell_magic(self, magic_name):
2612 """Find and return a cell magic by name.
2613
2614 Returns None if the magic isn't found."""
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.

Callers 3

_ofindMethod · 0.95
run_line_magicMethod · 0.95
test_cell_magic_class2Function · 0.80

Calls 1

getMethod · 0.80

Tested by 1

test_cell_magic_class2Function · 0.64