[IPython-dev] online sympy shell at live.sympy.org

Ondrej Certik ondrej at certik.cz
Mon May 19 10:35:49 EDT 2008


Hi,

I've setup:

http://live.sympy.org/

which is a python shell (see the link in the app for sources) and I've
included a sympy module in it. Sample session:

>>> from sympy.interactive import *
>>> integrate(1/(x**3+1), x)
(1/3)*log(1 + x) + (-1/6 - 1/6*I*3**(1/2))*log(-1/2 + x -
1/2*I*3**(1/2)) + (-1/6 + (1/6)*I*3**(1/2))*log(-1/2 + x +
(1/2)*I*3**(1/2))
>>> sin(x).series(x, 0, 5)
x - 1/6*x**3 + O(x**5)


The thing is running on the google app engine (thanks Harald Schilly
for the account).

Anyone interested in improving it? I'll create him an access to the
app engine for this app. Having something like ipython would be nice.
Also the pretty printing is a little broken, e.g.:

>>> pretty_print(1/(x+1))
1
-----
1 + x
>>> pretty_print(Integral(1/(x+1), x))
/
 |
 |   1
 | ----- dx
 | 1 + x
 |
/

i.e. the first line is left stripped. But otherwise it seems to work
very nice. CCing to ipython-dev, as an argument for having ipython
pure python only (otherwise it won't run on google app engine). :)

Ondrej



More information about the IPython-dev mailing list