Warning
This documentation is for an old version of IPython. You can find docs for newer versions here.
reST directive for syntax-highlighting ipython interactive sessions.
XXX - See what improvements can be made based on the new (as of Sept 2009) ‘pycon’ lexer for the python console. At the very least it will give better highlighted tracebacks.
Bases: pygments.lexer.Lexer
For IPython console output or doctests, such as:
In [1]: a = 'foo'
In [2]: a
Out[2]: 'foo'
In [3]: print a
foo
In [4]: 1 / 0
Notes:
- Tracebacks are not currently supported.
- It assumes the default IPython prompts, not customized ones.