https://avatars.githubusercontent.com/u/1284937?s=200&v=4

In order to use Spyder for writing Sage scripts you have to use the version of Python which comes with Sage within the IDE. To change it apply the following steps:

Now you can run your scripts with Run (F5) in Spyder's built-in console.

Tested with Spyder 2.3.8 and Sage 7.1.

Open Issues