| 1 | initial version |
As commented by @rburing, the problem is that the code needs to be preparsed first, see the doc (I cannot insert the link for you..).
I made it work as follows:
$ sage --preparse estimator.sage
which creates an estimator.sage.py file, which can be executed with
$ sage estimator.sage.py
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.