| 1 | initial version |
If you use run, then the .sage file is understood as an independent Python script, hence you should import the required modules, e.g.
from sage.interfaces.macaulay2 import macaulay2
Alternatively, you can use runfile (or %runfile) instead of run.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.