First time here? Check out the FAQ!
answered 12 years ago
You can put your function or class in a .py or .sage file and then run the command. In the following example I have myfunction in file.py
load("/path-to-file/file.py") myfunction()