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

Class FooFoo

tests/test_magic.py:1626–1637  ·  view source on GitHub ↗

class with both %foo and %%foo magics

Source from the content-addressed store, hash-verified

1624
1625@magics_class
1626class FooFoo(Magics):
1627 """class with both %foo and %%foo magics"""
1628
1629 @line_magic("foo")
1630 def line_foo(self, line):
1631 "I am line foo"
1632 pass
1633
1634 @cell_magic("foo")
1635 def cell_foo(self, line, cell):
1636 "I am cell foo, not line foo"
1637 pass
1638
1639
1640def test_line_cell_info():

Callers 1

test_multiple_magicsFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_multiple_magicsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…