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

Method register_magic_function

IPython/core/interactiveshell.py:2457–2460  ·  view source on GitHub ↗
(self, func, magic_kind='line', magic_name=None)

Source from the content-addressed store, hash-verified

2455 # Defined here so that it's included in the documentation
2456 @functools.wraps(magic.MagicsManager.register_function)
2457 def register_magic_function(self, func, magic_kind='line', magic_name=None):
2458 self.magics_manager.register_function(
2459 func, magic_kind=magic_kind, magic_name=magic_name
2460 )
2461
2462 def _find_with_lazy_load(self, /, type_, magic_name: str):
2463 """

Callers 5

magic_decoFunction · 0.80
markFunction · 0.80
test_magic_error_statusFunction · 0.80
test_cell_magic_regFunction · 0.80
test_prefilter_shadowedFunction · 0.80

Calls 1

register_functionMethod · 0.80

Tested by 3

test_magic_error_statusFunction · 0.64
test_cell_magic_regFunction · 0.64
test_prefilter_shadowedFunction · 0.64