| 1 | initial version |
You can write your reuseable functions into a .sage or .py file, store it anywhere on your computer (or the web), and then somewhere in the worksheet (e.g. the top), have a cell with
%auto
attach('/path/to/my/file.py')
attach will run all the code in your file, every time the file changes, so the functions in the file will be available from the worksheet.
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.