class with both %foo and %%foo magics
| 1624 | |
| 1625 | @magics_class |
| 1626 | class 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 | |
| 1640 | def test_line_cell_info(): |
no outgoing calls
searching dependent graphs…