Skip to main content

latexify

Python PyPI Latest Release License Downloads Code style: black Imports: isort

latexify is a Python package to compile a fragment of Python source code to a corresponding $\LaTeX$ expression:

Example of latexify usage

latexify provides the following functionalities:

  • Libraries to compile Python source code or AST to $\LaTeX$.
  • IPython classes to pretty-print compiled functions.

FAQs

  1. Which Python versions are supported?

    Syntaxes on Pythons 3.9 to 3.13 are officially supported, or will be supported.

  2. Which technique is used?

    latexify is implemented as a rule-based system on the official ast package.

  3. Are "AI" techniques adopted?

    latexify is based on traditional parsing techniques. If the "AI" meant some techniques around machine learning, the answer is no.

Getting started

See the example notebook, which provides several use-cases of this library.

You can also try the above notebook on Google Colaboratory.

See also the official documentation for more details.

How to Contribute

To contribute to this project, please refer CONTRIBUTING.md.

Disclaimer

This software is currently hosted on https://github.com/google, but not officially supported by Google.

If you have any issues and/or questions about this software, please visit the issue tracker or contact the main maintainer.

License

This software adopts the Apache License 2.0.

Release files for latexify-py 0.4.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for latexify-py 0.4.4
File Size Uploaded
latexify_py-0.4.4.tar.gz 29.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for latexify-py 0.4.4
File Interpreter ABI Platform
latexify_py-0.4.4-py3-none-any.whl Python 3 none any Details

Total release size: 68.4 kB

Release files / latexify_py-0.4.4.tar.gz

Download URL latexify_py-0.4.4.tar.gz
Size 29.7 kB
Tags Source
SHA-256 checksum
How to use checksums
f89274984811fb5b1436c98670814b21502cb34a0becadababcf3e1ec84e426e
BLAKE2b-256 checksum
How to use checksums
c16628097e41eb5bcaa6b17557517322cb2ce65c583d8208c91245df40fd8e8e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / latexify_py-0.4.4-py3-none-any.whl

Download URL latexify_py-0.4.4-py3-none-any.whl
Size 38.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5aa9c31a5ec7c6d94f67e24334f862f0c576d74a124c36d2712c12fe46f82900
BLAKE2b-256 checksum
How to use checksums
c00ece3ed3554ba3d37143d5aae1b8733220a29e26306680a67ee53ed373cd17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.4.4 This release

2 release files

0.4.2

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.1

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page