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

Function check_ident

tests/test_magic.py:1212–1218  ·  view source on GitHub ↗
(magic)

Source from the content-addressed store, hash-verified

1210
1211
1212def check_ident(magic):
1213 # Manually called, we get the result
1214 out = _ip.run_cell_magic(magic, "a", "b")
1215 assert out == ("a", "b")
1216 # Via run_cell, it goes into the user's namespace via displayhook
1217 _ip.run_cell("%%" + magic + " c\nd\n")
1218 assert _ip.user_ns["_"] == ("c", "d\n")
1219
1220
1221def test_cell_magic_func_deco(underscore_not_in_builtins):

Callers 4

test_cell_magic_regFunction · 0.85
test_cell_magic_classFunction · 0.85
test_cell_magic_class2Function · 0.85

Calls 2

run_cell_magicMethod · 0.80
run_cellMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…