Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

sage_eval does not have access by default to the variables declared in your session. Use the locals keword:

sage: eqs2 = [sage_eval(repr(xx), locals=globals()) for xx in eqs]

Depending on what you want to do, it may be more appropriate to use locals() instead of globals(). See http://stackoverflow.com/questions/7969949/whats-the-difference-between-globals-locals-and-vars.