1 | initial version |
It is enough to add to sageruntest.py:
from sage.all import *
from sage.matrix.matrix2 import Matrix
Alternatively, the 2nd line (yours) is enough if you rename your file to sageruntest.sage (then it will be preparsed by Sage).