Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You may put it in an appropriate subfolder of

sage-x.y/devel/sage/sage/

for example in

sage-x.y/devel/sage/sage/misc/

Let's say your file is named myfunctions.py, then

from sage.misc.myfunctions import *

will give you access to all functions defined in myfunctions.py

You provided you have access to the Sage directory tree, you may put it in an appropriate subfolder of

sage-x.y/devel/sage/sage/

for example in

sage-x.y/devel/sage/sage/misc/

Let's say your file is named myfunctions.py, then

from sage.misc.myfunctions import *

will give you access to all functions defined in myfunctions.py

provided Provided you have access to the Sage directory tree, you may put it in an appropriate subfolder of

sage-x.y/devel/sage/sage/

for example in

sage-x.y/devel/sage/sage/misc/

Let's say your file is named myfunctions.py, then

from sage.misc.myfunctions import *

will give you access to all functions defined in myfunctions.py