Hi Eric,

On Mon, Jan 25, 2010 at 6:41 PM, Eric Drechsel <[email protected]> wrote:
> Hi, I've been using sage notebook worksheets for scratchpad, sagetex
> to embed calcs in papers. I think most of my requirements in terms of
> calculations/plots could be met with sympy, in a much smaller, more
> embeddable package.
>
> What I'd like is to have the ability to embed sympy code in a wiki
> page. There are several wikis that I use (ikiwiki) but the one that
> I'd be interested in targeting initially would be moinmoin.
>
> The live demo provides a good example of embedding sympy in/output in
> a webpage, but it doesn't seem to support rendering plots. Sage has
> some magic to figure out how to deliver graphics (interactive X window
> for a local session, static png for web), has anyone looked at doing
> same with sympy?

Do you need that from the command line, or in the notebook? I use the
new sage notebook, that works without Sage, and it works nice with
sympy. In isympy, it's just an ipython and that works in the command
line.

As to plots, I just use matplotlib directly and that works nice both
in the command line and in the notebook.  We currently don't have a
mathematica-like plot command (like Sage has) in sympy (currently it
uses pyglet and it is not so versatile), but I think we should
implement it, it should work like in Sage, that it returns an object
with a _plot_ method (or _show_, not remember now) and the notebook
calls this automatically and plots the result. In the ipython (e.g. if
you run Sage from the command line), I think sage also does the same.

If I'll be glad to help you implement/polish the missing details in
sympy, so that it does what you want.

>
> Regards,
> Eric Drechsel
> http://wiki.shared.dre.am/people/eric

Nice, you study in Portland, OR? I was there at an internship in 2005.

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