I guess the code that pickles the globals implicitly assumes that expressions can be compared using !=. My guess is that this will be fixed once https://github.com/sympy/sympy-live/pull/71 is completed.
Aaron Meurer On Tue, Nov 5, 2013 at 4:30 PM, Kevin Murphy <[email protected]> wrote: > I tried this > > import numpy > a = numpy.arange(20) > a > > and got the stacktrace below. Any ideas why? > > Kevin > >>>> a > Exception in SymPy Live of type <type 'exceptions.ValueError'> for reference > the last 5 stack trace entries are Traceback (most recent call last): File > "/base/data/home/apps/s~sympy-live-hrd/39.369438448182393855/shell.py", line > 777, in post live.evaluate(statement, session, printer, stream) File > "/base/data/home/apps/s~sympy-live-hrd/39.369438448182393855/shell.py", line > 436, in evaluate if name not in old_globals or val != old_globals[name]: > ValueError: The truth value of an array with more than one element is > ambiguous. Use a.any() or a.all() > > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sympy. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.
