|Original author(s)||Geoffrey Poore|
|Initial release||27 April 2012|
|Written in||Python, LaTeX|
|License||LPPL (LaTeX code) and BSD 3-Clause (Python code)|
PythonTeX is a library that provides access to Python from within LaTeX. The software also provides support for embedding Ruby and Julia in LaTeX documents. PythonTeX provides a framework for creating reproducible documents, documents that both report results and contain the code that generated them. This enables a literate programming-style approach to reproducible research. Live documents that automatically perform analysis on external data are also possible.
Mode of operation
Code in the supported languages (Python, Ruby, and Julia) is entered within a LaTeX document. Then PythonTeX is used to execute this code. The results are included within the original document via LaTeX macros. PythonTeX also provides syntax highlighting for typeset code within LaTeX documents via the Pygments syntax highlighter.