tests/extension/ref/lexer_ipython_directive.txt
raw| 1 | test_project |
| 2 | b |
| 3 | test_project.bar |
| 4 | # split |
| 5 | extensions.append('IPython.sphinxext.ipython_directive') |
| 6 | # split |
| 7 | Test project |
| 8 | ============ |
| 9 | |
| 10 | .. ipython:: |
| 11 | |
| 12 | In [2]: import test_project |
| 13 | |
| 14 | In [3]: b = test_project.bar() |
| 15 | |
| 16 | In [4]: 2 + 2 |
| 17 | Out[4]: 4 |
| 18 | |
| 19 | In [5]: class A: |
| 20 | ...: pass |
| 21 | |
| 22 | .. automodule:: test_project |