pythontex icon indicating copy to clipboard operation
pythontex copied to clipboard

A LaTeX package that executes Python and other code in LaTeX documents, and includes the output

Results 85 pythontex issues
Sort by recently updated
recently updated
newest added

Currently, I just include code if it is more than a snipped with `pycode` or `octavecode` but this is quite messy. First of all my code checker constantly complains and...

As suggested in https://tex.stackexchange.com/questions/634981/pythontex-warning/640760 and reported on github as #196 -- the docstring contains latex macros, but python interprets them as escape sequences. Use a python raw string, r''' ......

Most other engines have a SubCodeEngine(langname, filesuffix) to allow shorter macros to be used (\py instead of \python). The documentation says the same is true for javascript, but \js did...

When using `pythontex` with `sagefamily` like in the example below, I get the following warning: ``` This is PythonTeX 0.18 ---- Messages for sage:default:default ---- /usr/local/texlive/2021/texmf-dist/scripts/pythontex/pythontex_utils.py:231: DeprecationWarning: invalid escape sequence...

enhancement

Minimal working example ```latex \documentclass[a4paper]{article} \usepackage[german, ngerman]{babel} \usepackage{ngerman} % I am the bad line \usepackage{pythontex} \begin{document} \begin{pycode} print("y") \end{pycode} \end{document} ``` Running ``` xelatex mwe.tex ``` yields ``` ! Argument...

doc

Example: ``` \documentclass{article} \usepackage{pythontex} \setpythontexpygopt[pycon]{style=bw} \begin{document} \begin{pyconsole} a = 1 a \end{pyconsole} \pycon{a} \end{document} ```

bug

Useful if you have a utility module that you only changed one function of, and don't want to rebuild every session. Currently works from the command line, could perhaps put...

I've noticed if there's an error inside any `!{}` within the `pysub` environment, PythonTeX generates an empty `name_default_default.py` file and just hangs indefinitely. Would it be possible for PythonTeX to...

Thank you for this open-source! I have been installing the pythontex, but I failed to automatically create a symlink to pythontex*.py and depythontex*.py. So, I would like to create it...

I just got an error. ``` ---- Messages for sage:default:default ---- * PythonTeX notice 1 message(s) could not be classified Interpreted as errors, based on the return code(s) * PythonTeX...