Directory macros/latex/contrib/pythonimmediate
pythonimmediate -- Library to run Python code Released under the LaTeX Project Public License v1.3c or later See http://www.latex-project.org/lppl.txt Report bugs at https://github.com/user202729/pythonimmediate-tex ======== Copyright 2022-2024 user202729 This work may be distributed and/or modified under the conditions of the LaTeX Project Public License (LPPL), either version 1.3c of this license or (at your option) any later version. The latest version of this license is in the file: http://www.latex-project.org/lppl.txt This work has the LPPL maintenance status `maintained'. The Current Maintainer of this work is user202729. This work consists of the files pythonimmediate.sty, pythonimmediate_helper.lua.
Download the contents of this package in one zip archive (436.7k).
pythonimmediate – Library to run Python code
Just like PerlTeX or PyLuaTeX (and unlike PythonTeX or lt3luabridge), this only requires a single run, and variables are persistent throughout the run.
Unlike PerlTeX or PyLuaTeX, there is no restriction on compiler or script required to run the code.
There are also debugging functionalities: TeX errors result in Python traceback, and Python errors result in TeX traceback. Errors in code executed with the pycode environment give the correct traceback point to the Python line of code in the TeX file.
For advanced users, this package allows the user to manipulate the TeX state directly from within Python, so you don’t need to write a single line of TeX code.
CAUTION: In addition to this LaTeX package you need the Python pythonimmediate-tex package, which can be obtained from https://pypi.org/project/pythonimmediate-tex/.
Package | pythonimmediate |
Repository | https://github.com/user202729/pythonimmediate-tex |
Version | 0.5.0 2024-01-18 |
Licenses | The LaTeX Project Public License 1.3c |
Copyright | 2022–2024 user202729 |
Maintainer | user202729 |
Contained in | TeX Live as pythonimmediate MiKTeX as pythonimmediate |
Topics | Callback Experimental LaTeX3 |