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.
For IPython console output or doctests, such as:
In : a = 'foo' In : a Out: 'foo' In : print a foo In : 1 / 0
- Tracebacks are not currently supported.
- It assumes the default IPython prompts, not customized ones.