pyjupyter – Lightweight environment for typesetting Python code
The pyjupyter package provides a lightweight and elegant environment for typesetting Python code in LaTeX documents with a visual style inspired by Jupyter notebooks.
It leverages the listings package for syntax highlighting and tcolorbox for structured, breakable frames. Key features include:
- Full support for French accents and UTF-8 encoding.
- Intelligent syntax highlighting for Python operators and keywords.
- A dedicated numbered option for line numbering.
- Seamless integration with TeXstudio via an included .cwl file for auto-completion.
- Robust handling of Python comments (#) using an optional argument syntax.
| Sources | /macros/latex/contrib/pyjupyter |
| Documentation | |
| Version | 1.0.0 2026-03-06 |
| Licenses | The LaTeX Project Public License 1.3c |
| Copyright | 2026 Bara Ouyèté Bright |
| Maintainer | Bara Ouyèté Bright |
| Topics | Listing |
| See also | pynotebook |
Download the contents of this package in one zip archive (170.9k).
Suggestions
Maybe you are interested in the following packages as well.
Community Comments