[IPython-dev] isympy doesn't work with the new ipython-dev
Wed Feb 3 14:58:32 CST 2010
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> wrote:
> On Fri, Jan 22, 2010 at 1:20 PM, Gökhan Sever <firstname.lastname@example.org> wrote:
>> I can't get the isympy working with the Fernando's trunk. I solved one of
>> 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
> 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...
> IPython-dev mailing list
More information about the IPython-dev