First time here? Check out the FAQ!
answered 7 years ago
You have either to add the line from __future__ import print_function at the top of the file my_script.sage or to use the magic command %load instead of load():
from __future__ import print_function
my_script.sage
%load
load()
sage: %load my_script.sage