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

Function test_cell_magic_class

tests/test_magic.py:1241–1251  ·  view source on GitHub ↗

Cell magics declared via a class

(underscore_not_in_builtins)

Source from the content-addressed store, hash-verified

1239
1240
1241def test_cell_magic_class(underscore_not_in_builtins):
1242 "Cell magics declared via a class"
1243
1244 @magics_class
1245 class MyMagics(Magics):
1246 @cell_magic
1247 def cellm3(self, line, cell):
1248 return line, cell
1249
1250 _ip.register_magics(MyMagics)
1251 check_ident("cellm3")
1252
1253
1254def test_cell_magic_class2(underscore_not_in_builtins):

Callers

nothing calls this directly

Calls 1

check_identFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…