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

Method find_line_magic

IPython/core/interactiveshell.py:2605–2609  ·  view source on GitHub ↗

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

(self, magic_name)

Source from the content-addressed store, hash-verified

2603 return result
2604
2605 def find_line_magic(self, magic_name):
2606 """Find and return a line magic by name.
2607
2608 Returns None if the magic isn't found."""
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.

Callers 10

_ofindMethod · 0.95
run_line_magicMethod · 0.95
run_cell_magicMethod · 0.95
do_pdefMethod · 0.80
do_pdocMethod · 0.80
do_pfileMethod · 0.80
do_pinfoMethod · 0.80
do_pinfo2Method · 0.80
do_psourceMethod · 0.80
test_find_file_magicFunction · 0.80

Calls 1

getMethod · 0.80

Tested by 1

test_find_file_magicFunction · 0.64