Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Running a prewritten program

In Python you have IDLE, which allows you to write a program and then run it. I am looking for something similar for sage, so that you don't have to type it line for line in sagemath. Is there something that looks like IDLE for sage?

I had a look at this the programmig page of the docs (I cannot post the link due to 'karma' whatever that is), and tried to do it by creating a program in a .txt file and then renaming it to .sage, but sage said that it could not find the file. The error says OSError: did not find file 'C:\Users\Martin\Desktop\example.sage' to load or attach

and the exact thing I wrote is

load("C:\Users\Martin\Desktop\example.sage")

I double checked the path and file name, I am pretty sure that there are no mistakes in that.