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

Function test_edit_cell

IPython/core/tests/test_magic.py:1155–1162  ·  view source on GitHub ↗

%edit [cell id]

()

Source from the content-addressed store, hash-verified

1153
1154
1155def test_edit_cell():
1156 """%edit [cell id]"""
1157 ip = get_ipython()
1158
1159 ip.run_cell(u"def foo(): return 1", store_history=True)
1160
1161 # test
1162 _run_edit_test("1", exp_contents=ip.user_ns['In'][1], exp_is_temp=True)
1163
1164def test_bookmark():
1165 ip = get_ipython()

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