| 1 | initial version |
Once you have a few functions you want to use and reuse, store them
in a file with extension .sage, for example mycode.sage.
Then, from a worksheet, you can either
load /full/path/to/mycode.sage
which will load the code in mycode.sageonce, or
attach /full/path/to/mycode.sage
which will load it, and monitor the file so that each time any changes to the file are saved to disk, it gets loaded again.
Note that /full/path/to/mycode.sage should be replaced with
the actual full path to mycode.sage, for example
/home/user/solving_the_riemann_hypothesis/mycode.sage or
/Users/Sagista/Documents/MySuperProject/mycode.sage.
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.