Skip to main content

Generates LaTeX math description from Python functions.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

latexify_py-0.4.4.tar.gz (29.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

latexify_py-0.4.4-py3-none-any.whl (38.6 kB view details)

Uploaded Python 3

File details

Details for the file latexify_py-0.4.4.tar.gz.

File metadata

  • Download URL: latexify_py-0.4.4.tar.gz
  • Upload date:
  • Size: 29.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for latexify_py-0.4.4.tar.gz
Algorithm Hash digest
SHA256 f89274984811fb5b1436c98670814b21502cb34a0becadababcf3e1ec84e426e
MD5 2242e0f0ef49e4fa51e5ecc178b1f0b5
BLAKE2b-256 c16628097e41eb5bcaa6b17557517322cb2ce65c583d8208c91245df40fd8e8e

See more details on using hashes here.

File details

Details for the file latexify_py-0.4.4-py3-none-any.whl.

File metadata

  • Download URL: latexify_py-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 38.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for latexify_py-0.4.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5aa9c31a5ec7c6d94f67e24334f862f0c576d74a124c36d2712c12fe46f82900
MD5 6d2322f09be12fe5e3317950973e7890
BLAKE2b-256 c00ece3ed3554ba3d37143d5aae1b8733220a29e26306680a67ee53ed373cd17

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page