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

Function parse_cell_magic

docs/sphinxext/magics.py:26–32  ·  view source on GitHub ↗
(env, sig, signode)

Source from the content-addressed store, hash-verified

24 return title, target
25
26def parse_cell_magic(env, sig, signode):
27 m = name_re.match(sig)
28 if not m:
29 raise ValueError("Invalid cell magic: %s" % sig)
30 name = "%%" + sig
31 signode += addnodes.desc_name(name, name)
32 return m.group(0)
33
34class CellMagicRole(LineMagicRole):
35 """Cross reference role displayed with a %% prefix"""

Callers

nothing calls this directly

Calls 1

groupMethod · 0.80

Tested by

no test coverage detected