CTAN Comprehensive TeX Archive Network

pythontex – Run Python from within a document, typesetting the results

The package allows you to enter Python code within a document, execute the code, and access its output in the original document.

Python code is only executed when it has been modified, or when it meets user-specified criteria. Code may be divided into user-defined sessions, which automatically run in parallel.

Errors and warnings are synchronized with the document, so that they refer to the document's line numbers. External dependencies can be tracked, so that code is re-executed when the data it depends on is modified. Python also provides syntax highlighting for code in documents via the Pygments syntax highlighter.

The package provides a depythontex utility, that creates a copy of the document in which all Python code has been replaced by its output. This is useful for journal submissions, sharing documents, and conversion to other formats.

Sources/macros/latex/contrib/pythontex
Documentation
Repositoryhttps://github.com/gpoore/pythontex
Version0.16 2017-07-20
LicensesThe Project Public License 1.3
Copyright2012–2017 Geoffrey M. Poore
MaintainerGeoffrey Poore
Contained inTeX Live as pythontex
MiKTeX as pythontex
TopicsCallback
See alsoperltex

Download the contents of this package in one zip archive (1.7M).

Community Comments

Loading...

Announcements

Here you can see a respective diagram in newer browsers.

more

Package Links

Guest Book Sitemap Contact Contact Author