On Thu, Feb 17, 2011 at 2:32 PM, Aaron Meurer <[email protected]> wrote:
>> The hard part above is that SymPy should stay as a *library*,
> <snip>
>> Ondrej
>
> I strongly agree with this point.
>
> I also agree with Ronan that the biggest disparity between SymPy and
> Mathematica is the lack of a nice GUI, especially for the adoption of
> new users who may not be so comfortable with the command line.

Definitely. (This is my main goal to create such a web gui.) However,
all guis should be a separate projects. I would encourage people to
try to create such an all in one "mathematica like" package. I can
imagine, that the best GUI projects could be linked from the main page
of sympy. (e.g. we link Sage and symbide already).

>
> Also, plotting basically doesn't work at all for me due to various
> bugs.  I think it should be completely restructured to be independent
> of pyglet.

Yep, that's for sure (and remove pyglet from sympy). It's on my todo list.

So here is a preliminary TableForm implementation:

https://github.com/certik/sympy/commit/5faba9ebd9a57d929eb28a560b752a12ebced300

and example usage:

In [1]: from sympy import TableForm, array

In [2]: a = array([4, 2, 3])

In [3]: TableForm(zip(a, a**3))
Out[3]:
4 64
2 8
3 27


In [4]: TableForm([["a", "b"], ["c", "d"], ["e", "f"]], headings="automatic")
Out[4]:
  | 1 2
-------
1 | a b
2 | c d
3 | e f


In [5]: TableForm([["a", "b"], ["c", "d"], ["e", "f"]],
   ...:         headings=("automatic", None))
Out[5]:
1 | a b
2 | c d
3 | e f


In [6]: TableForm([["a", "b"], ["c", "d"], ["e", "f"]],
   ...:         headings=(None, "automatic"))
Out[6]:
1 2
---
a b
c d
e f


In [7]: TableForm([[5, 7], [4, 2], [10, 3]],
   ...:         headings=[["Group A", "Group B", "Group C"], ["y1", "y2"]])
Out[7]:
        | y1 y2
---------------
Group A | 5  7
Group B | 4  2
Group C | 10 3


In [8]: TableForm([[5, 7], [4, 2], [10, 3]],
   ...:         headings=[["Group A", "Group B", "Group C"], ["y1", "y2"]],
   ...:         alignment="right")
Out[8]:
        | y1 y2
---------------
Group A |  5  7
Group B |  4  2
Group C | 10  3


Ondrej

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

Reply via email to