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

Function test_edit_cell

tests/test_magic.py:1789–1796  ·  view source on GitHub ↗

%edit [cell id]

()

Source from the content-addressed store, hash-verified

1787
1788
1789def test_edit_cell():
1790 """%edit [cell id]"""
1791 ip = get_ipython()
1792
1793 ip.run_cell("def foo(): return 1", store_history=True)
1794
1795 # test
1796 _run_edit_test("1", exp_contents=ip.user_ns["In"][1], exp_is_temp=True)
1797
1798
1799def test_edit_fname():

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…