First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 12 years ago

Shashank gravatar image

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()