Ask Your Question

Revision history [back]

You should use q = SR.var('q') instead of q = var('q'). Indeed, var('q') injects q in the global namespace, while SR.var('q') does not.:

def dummy():
    q = SR.var('q')