Skip to main content

A light-weight wrapper around LaTeX for mathematical symbols for Jupyter Notebooks

Project description

nbTeX

A light-weight pythonic wrapper around LaTeX specifically to python-like interface to write mathemical latex in Jupyter Notebooks.
NOTE: Only Jupyter Notebooks are supported. Tests done in notebooks too

Motivation

A lot of us in data science extensively use notebooks and sometimes have to write some latex in markdown. Most of us are not familiar with LaTeX. Therefore instead of going on a hunt for LaTeX on the internet, you can use this library for writing LaTeX in a pythonic manner.
NOTE: We only support Math LaTeX because Jupyter Notebook users normally do other stuff in normal markdown and not in LaTeX.

Features

You can create latex for:

  • +: Adding
  • -: Subtraction
  • *: Multiplication
  • pow: Exponents
  • ^: Exponents (another way)
  • /: Fractions
  • |: Space in generated latex
  • (): Function calling with arbitrary args
  • <, >, <=, >=: Ordering operators
  • ==, !=: Equal and Not Equal
  • ~: Inversion of the topmost operator in the expression (eg: ~(x*y) will give LaTeX for division/fraction)
  • Matrices
  • Differentiation
  • Partial Differentiation
  • Integration
  • Integration over partials
  • Summation
  • Product
  • Vector notation

Usage

The usage is best presented by examples
Look at the docs

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

nbtex-1.0.7.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

nbtex-1.0.7-py3-none-any.whl (24.8 kB view details)

Uploaded Python 3

File details

Details for the file nbtex-1.0.7.tar.gz.

File metadata

  • Download URL: nbtex-1.0.7.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9

File hashes

Hashes for nbtex-1.0.7.tar.gz
Algorithm Hash digest
SHA256 17e85b8e85b2b0908d40a2f476ac4344051e91ca2e443366c840bba5a5e58328
MD5 62eb21218d31048256f3cbf61317456f
BLAKE2b-256 4860ce4a5365feccdf1b9464cad3c95092127df3ba4e5586562161bd9b474926

See more details on using hashes here.

File details

Details for the file nbtex-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: nbtex-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 24.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.9

File hashes

Hashes for nbtex-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 6683af00e77cb5b76a19b0e41411a08897137fdf4be47c596e04fad93d5be035
MD5 65d227155572f117dd8c99df5c0d89bb
BLAKE2b-256 916ee2e62fcd9e5bd1680e36a552bd6d40b0f67fee06454c30e8623283189f7d

See more details on using hashes here.

Supported by

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