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.7 to 3.11 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

We prepared a Google Colaboratory notebook that provides several examples to use this package.

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.3.1.tar.gz (28.5 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.3.1-py3-none-any.whl (36.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: latexify_py-0.3.1.tar.gz
  • Upload date:
  • Size: 28.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for latexify_py-0.3.1.tar.gz
Algorithm Hash digest
SHA256 78f98bd465a198e642ec95ae2dda8771fa1083f86f255bd8e0f11858440b1ff4
MD5 ff272e7f60bc2f09ef3b7ec533c75a69
BLAKE2b-256 45a49858167cc806626d00fa84a409ec9b34341c639051aa8f44d870f2ca04f2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: latexify_py-0.3.1-py3-none-any.whl
  • Upload date:
  • Size: 36.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for latexify_py-0.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 66dc43f5080dba545fbc1284128f9721f8df52d75607f73b3a1a81644359ecd8
MD5 bf7c81c3fbcfdff03c8604cbd7c0e4ac
BLAKE2b-256 e60b23468faf897a35e91cd8dfe21f724a8cc80df86003df160427272dde9eff

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