[IPython-dev] isympy doesn't work with the new ipython-dev
Tue Feb 9 22:37:29 CST 2010
This approach will also work. With the current trunk, you shouldn't even
to move the ipython_config_sympy.py to .ipython. But if you do move it
you can change it to your taste. Can you mention this on the sympy list to
see what approach they want to take?
I encountered some problems with isympy as well, but managed to get it
> to work (at least for my purposes) by changing /usr/local/bin/isympy
> (or wherever your script installs the isympy script) to just:
> ipython -p sympy
> and then I put a ipython_config_sympy.py file in the .ipython
> directory with the following:
> c = get_config()
> # This can be used at any point in a config file to load a sub config
> # and merge it into the current one.
> lines = """
> from __future__ import division
> from sympy import *
> x, y, z = symbols('xyz')
> k, m, n = symbols('kmn', integer=True)
> f, g, h = map(Function, 'fgh')
> # You have to make sure that attributes that are containers already
> # exist before using them. Simple assigning a new list will override
> # all previous values.
> if hasattr(c.Global, 'exec_lines'):
> c.Global.exec_lines = [lines]
> On Fri, Jan 22, 2010 at 4:58 PM, Fernando Perez <email@example.com>
> > On Fri, Jan 22, 2010 at 1:20 PM, Gökhan Sever <firstname.lastname@example.org>
> >> I can't get the isympy working with the Fernando's trunk. I solved one
> >> the missing attribute error but stuck at the other one:
> > No, things have changed a bit. I'm insanely pressed for time right
> > now, the best I suggest is looking at this test code file, around line
> > 130:
> > That makes the kind of shell you're looking for, sort of.
> > Sorry not to be able to give you a detailed example right now...
> > cheers,
> > f
> > _______________________________________________
> > IPython-dev mailing list
> > IPythonemail@example.com
> > http://mail.scipy.org/mailman/listinfo/ipython-dev
> IPython-dev mailing list
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the IPython-dev