User:Chymæra/PythonTeX

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.