Aaron S. Meurer wrote:
> On Jun 1, 2009, at 9:33 PM, Joel C. Salomon wrote:
>> • Is there a Python interface that will allow the use of Unicode symbols
>> for pretty-printing?
>
> I believe unicode is built into python, so you shouldn't have a
> problem there.

The documentation suggests output like this is possible:

    In [1]: a = Symbol("alpha")
    In [2]: b = Symbol("beta")
    In [3]: a,b
    Out[3]: (α, β)
    In [4]: Integral((a+b)**2, a)
    Out[4]:
    ⌠
    ⎮
    ⎮        2
    ⎮ (α + β)  d(α)
    ⎮
    ⌡

What I get is this:

    In [1]: a = Symbol("alpha")
    In [2]: b = Symbol("beta")
    In [3]: a,b
    Out[3]: (alpha, beta)
    In [4]: Integral((a+b)**2, a)
    Out[4]:
      /
     |
     |               2
     | (alpha + beta)  d(alpha)
     |
    /

Is there a way for me to get the nicer Unicode pretty-printing under
Windows?

—Joel Salomon

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to sympy@googlegroups.com
To unsubscribe from this group, send email to sympy+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to