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

Method find_line_magic

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

2382 return result
2383
2384 def find_line_magic(self, magic_name):
2385 """Find and return a line magic by name.
2386
2387 Returns None if the magic isn't found."""
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.

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

no outgoing calls

Tested by 1

test_find_file_magicFunction · 0.64