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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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