Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #92495 > unrolled thread

How to pretty mathematical formulas in Python? Similar to Mathematica formats.

Started bySebastian M Cheung <minscheung@googlemail.com>
First post2015-06-11 11:32 -0700
Last post2015-06-11 15:04 -0700
Articles 5 — 3 participants

Back to article view | Back to comp.lang.python


Contents

  How to pretty mathematical formulas in Python? Similar to Mathematica formats. Sebastian M Cheung <minscheung@googlemail.com> - 2015-06-11 11:32 -0700
    Re: How to pretty mathematical formulas in Python? Similar to Mathematica formats. random832@fastmail.us - 2015-06-11 14:54 -0400
    Re: How to pretty mathematical formulas in Python? Similar to Mathematica formats. random832@fastmail.us - 2015-06-11 14:57 -0400
    Re: How to pretty mathematical formulas in Python? Similar to Mathematica formats. TheSeeker <duane.kaufman@gmail.com> - 2015-06-11 13:27 -0700
    Re: How to pretty mathematical formulas in Python? Similar to Mathematica formats. Sebastian M Cheung <minscheung@googlemail.com> - 2015-06-11 15:04 -0700

#92495 — How to pretty mathematical formulas in Python? Similar to Mathematica formats.

FromSebastian M Cheung <minscheung@googlemail.com>
Date2015-06-11 11:32 -0700
SubjectHow to pretty mathematical formulas in Python? Similar to Mathematica formats.
Message-ID<b881edd8-55e7-4eea-88fd-7b3a094a295c@googlegroups.com>
How to pretty mathematical formulas in Python? Similar to Mathematica formats.

Are there good packages to prettify mathematica formulas in Python?

[toc] | [next] | [standalone]


#92496

Fromrandom832@fastmail.us
Date2015-06-11 14:54 -0400
Message-ID<mailman.405.1434048891.13271.python-list@python.org>
In reply to#92495
On Thu, Jun 11, 2015, at 14:32, Sebastian M Cheung via Python-list
wrote:
> How to pretty mathematical formulas in Python? Similar to Mathematica
> formats.
> 
> Are there good packages to prettify mathematica formulas in Python?

>From a google search, apparently matplotlib has a module called mathtext
which uses a subset of LaTeX.

http://matplotlib.org/api/mathtext_api.html

Of course, you've got to put your formula in LaTeX format... which is
the same format used on Stack Exchange and Wikipedia, so you should be
able to find plenty of resources to learn about it.

[toc] | [prev] | [next] | [standalone]


#92497

Fromrandom832@fastmail.us
Date2015-06-11 14:57 -0400
Message-ID<mailman.406.1434049046.13271.python-list@python.org>
In reply to#92495
On Thu, Jun 11, 2015, at 14:54, random832@fastmail.us wrote:
> On Thu, Jun 11, 2015, at 14:32, Sebastian M Cheung via Python-list
> wrote:
> > How to pretty mathematical formulas in Python? Similar to Mathematica
> > formats.
> > 
> > Are there good packages to prettify mathematica formulas in Python?
> 
> From a google search, apparently matplotlib has a module called mathtext
> which uses a subset of LaTeX.
> 
> http://matplotlib.org/api/mathtext_api.html
> 
> Of course, you've got to put your formula in LaTeX format... which is
> the same format used on Stack Exchange and Wikipedia, so you should be
> able to find plenty of resources to learn about it.

I found another page on matplotlib's site with examples:
http://matplotlib.org/users/mathtext.html

[toc] | [prev] | [next] | [standalone]


#92501

FromTheSeeker <duane.kaufman@gmail.com>
Date2015-06-11 13:27 -0700
Message-ID<9856774e-0d0d-4bae-b9e3-6d8f3ae7b94d@googlegroups.com>
In reply to#92495
On Thursday, June 11, 2015 at 1:33:12 PM UTC-5, Sebastian M Cheung wrote:
> How to pretty mathematical formulas in Python? Similar to Mathematica formats.
> 
> Are there good packages to prettify mathematica formulas in Python?

Sympy (http://www.sympy.org/en/index.html) has some capabilities to pretty-print mathematics.

Duane

[toc] | [prev] | [next] | [standalone]


#92502

FromSebastian M Cheung <minscheung@googlemail.com>
Date2015-06-11 15:04 -0700
Message-ID<59fafd20-efc7-43f9-93d7-339146686b34@googlegroups.com>
In reply to#92495
On Thursday, June 11, 2015 at 7:33:12 PM UTC+1, Sebastian M Cheung wrote:
> How to pretty mathematical formulas in Python? Similar to Mathematica formats.
> 
> Are there good packages to prettify mathematica formulas in Python?

Thanks Pythonistas

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web