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

Function test_edit_interactive

tests/test_magic.py:1778–1786  ·  view source on GitHub ↗

%edit on interactively defined objects

()

Source from the content-addressed store, hash-verified

1776
1777
1778def test_edit_interactive():
1779 """%edit on interactively defined objects"""
1780 ip = get_ipython()
1781 n = ip.execution_count
1782 ip.run_cell("def foo(): return 1", store_history=True)
1783
1784 with pytest.raises(code.InteractivelyDefined) as e:
1785 _run_edit_test("foo")
1786 assert e.value.index == n
1787
1788
1789def test_edit_cell():

Callers

nothing calls this directly

Calls 3

get_ipythonFunction · 0.90
_run_edit_testFunction · 0.85
run_cellMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…