Ask Your Question

Revision history [back]

Rename your file from .py to .sage.

Then it will be read with all Sage names active.

In a .py file you need to import things explicitly.