I have a couple of functions that I'd like to reuse when needed, but having to write them into each worksheet is annoying.
Is there a file/directory where I can put the functions such that they get loaded into every new worksheet?
QUESTION: Is there anything so Sage can be made to automatically execute commands on startup? ANSWER: Yes, just make a file $HOME/.sage/init.sage and it will be executed any time you start sage.
posted Jan 19 '12kcrisman
7427 ● 17 ● 76 ● 166
Alternatively, you can put the file somewhere on the filesystem or out on the web, and "load" it as the first command in your worksheet. You still have to type something in the worksheet, but it's one line.
posted Jan 19 '12Jason Grout
3305 ● 7 ● 28 ● 74
Asked: Jan 19 '12
Seen: 179 times
Last updated: Jan 19 '12
powered by ASKBOT version 0.7.22
Copyright Sage, 2010. Some rights reserved under creative commons license.