Test sage code

asked 2021-03-01 15:42:09 +0100

Blue sky gravatar image

Hi, I want to test my code to see whether it is correct. I googled and I find out there is a code " sage -t/...py" I tried it for my windows and linux systems, but that does not work. Could you please explain to me what I should do? thanks in advance.

edit retag flag offensive close merge delete

Comments

Hi Blue Sky look here

ortollj gravatar imageortollj ( 2021-03-01 18:03:24 +0100 )edit

Hi Ortonllj, Iam looking for a code " sage -t ....py" that checks the code. I don't know what the code is.

Blue sky gravatar imageBlue sky ( 2021-03-01 18:11:34 +0100 )edit

In linux, for example, you need to have installed Sage, and from the command line (shell prompt), type "/path/to/sage -t /path/to/file.py". If you've tried that and it hasn't worked, please provide more details.

John Palmieri gravatar imageJohn Palmieri ( 2021-03-01 18:29:03 +0100 )edit

@John Palmieri Thanks! what do you mean by "path"?

Blue sky gravatar imageBlue sky ( 2021-03-01 18:35:42 +0100 )edit
1

See https://www.digitalocean.com/communit... or any other introduction to linux basics.

John Palmieri gravatar imageJohn Palmieri ( 2021-03-01 18:53:43 +0100 )edit