File: lexer_ipython_directive.txt

package info (click to toggle)
python-sphinx-codeautolink 0.17.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 936 kB
  • sloc: python: 2,818; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 314 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
test_project
b
test_project.bar
# split
extensions.append('IPython.sphinxext.ipython_directive')
# split
Test project
============

.. ipython::

   In [2]: import test_project

   In [3]: b = test_project.bar()

   In [4]: 2 + 2
   Out[4]: 4

   In [5]: class A:
      ...:     pass

.. automodule:: test_project