Revision history [back]

A .spyx file is not intended to be run with "sage my_file.pyx". You should rather do inside a Sage console

sage: %runfile my_file.spyx


to run once the file, or

sage: %attach my_file.spyx


if you would like that the file is recompiled and reimported each time it has changed.