ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Sat, 28 Sep 2019 16:17:47 -0500how to sage a .sage filehttp://ask.sagemath.org/question/41568/how-to-sage-a-sage-file/ I am having sage installed on a windows 10. Sage file example.sage.sage which is generated by sagetex is situated in K:\sageexample folder. How to run sage on this file. All references are full of jargonism and don't explain anything at all or give examples.
I run sage shell and prompt:
run ('K:sageexample\example.sage.sage') but no result. I run load command load ('K:sageexample\example.sage.sage') no example.
I don't want to install linux for one program.
How to "sage" a file from notebook interface?Thu, 15 Mar 2018 12:27:18 -0500http://ask.sagemath.org/question/41568/how-to-sage-a-sage-file/Comment by Emmanuel Charpentier for <p>I am having sage installed on a windows 10. Sage file example.sage.sage which is generated by sagetex is situated in K:\sageexample folder. How to run sage on this file. All references are full of jargonism and don't explain anything at all or give examples.
I run sage shell and prompt:
run ('K:sageexample\example.sage.sage') but no result. I run load command load ('K:sageexample\example.sage.sage') no example.
I don't want to install linux for one program.
How to "sage" a file from notebook interface?</p>
http://ask.sagemath.org/question/41568/how-to-sage-a-sage-file/?comment=41595#post-id-41595How did you install Sage ? On Windows, there are currently two possibilities :
* installing the Sage virtual appliance (= a Linux virtual machine) and running it in Virtualbox.
* Installing Erik Bray's installer (which creates a minimal Cygwin tree).
Both of these are mainly oriented to the interactive use of Sage from either a Jupyter worksheet or a "Sage console". Running Sage from the command line to compile example.sagetex.sage is a third (marginal) case, for which you need to be at a terminal :
* A Linux terminal in the first case
* A Cygwin terminal in the second case.
So tell us how you did install Sage...Sat, 17 Mar 2018 04:27:13 -0500http://ask.sagemath.org/question/41568/how-to-sage-a-sage-file/?comment=41595#post-id-41595Answer by AntiqueNoob for <p>I am having sage installed on a windows 10. Sage file example.sage.sage which is generated by sagetex is situated in K:\sageexample folder. How to run sage on this file. All references are full of jargonism and don't explain anything at all or give examples.
I run sage shell and prompt:
run ('K:sageexample\example.sage.sage') but no result. I run load command load ('K:sageexample\example.sage.sage') no example.
I don't want to install linux for one program.
How to "sage" a file from notebook interface?</p>
http://ask.sagemath.org/question/41568/how-to-sage-a-sage-file/?answer=48091#post-id-48091I was overjoyed to find that, on my Windows 10 PC, the sagemath 8.8 "shell" produced an ASCII terminal window.
The window understands vi (although the existent .exrc file has no effect).
And, from within a vi session, SEEMS to understand "!sage %" to run the current file.
Only thing: where's the sage-run output go? Sat, 28 Sep 2019 16:17:47 -0500http://ask.sagemath.org/question/41568/how-to-sage-a-sage-file/?answer=48091#post-id-48091Answer by Arensoft for <p>I am having sage installed on a windows 10. Sage file example.sage.sage which is generated by sagetex is situated in K:\sageexample folder. How to run sage on this file. All references are full of jargonism and don't explain anything at all or give examples.
I run sage shell and prompt:
run ('K:sageexample\example.sage.sage') but no result. I run load command load ('K:sageexample\example.sage.sage') no example.
I don't want to install linux for one program.
How to "sage" a file from notebook interface?</p>
http://ask.sagemath.org/question/41568/how-to-sage-a-sage-file/?answer=45877#post-id-45877On windows, open Sagemath shell and navigate to the folder where your file is placed. You should use "cd" command. Be carefull with folders with spaces. In that case write folder name between ' '
tu process the file you should write load('file.sage') (file is the name of your file)Fri, 22 Mar 2019 16:53:46 -0500http://ask.sagemath.org/question/41568/how-to-sage-a-sage-file/?answer=45877#post-id-45877Answer by Iguananaut for <p>I am having sage installed on a windows 10. Sage file example.sage.sage which is generated by sagetex is situated in K:\sageexample folder. How to run sage on this file. All references are full of jargonism and don't explain anything at all or give examples.
I run sage shell and prompt:
run ('K:sageexample\example.sage.sage') but no result. I run load command load ('K:sageexample\example.sage.sage') no example.
I don't want to install linux for one program.
How to "sage" a file from notebook interface?</p>
http://ask.sagemath.org/question/41568/how-to-sage-a-sage-file/?answer=41788#post-id-41788Assuming that you installed the Windows native version of Sage, run the "SageMath Shell" which opens a command-prompt, and run
sage 'K:\sageexample\example.sage.sage'
at the prompt (for example, based on the filename in the question). Note that this a a bash (Unix-like) shell, where the backslashes used in Windows paths imply an escape character normally, which might have been your problem. So it's necessary to enclose the path in single-quotes for it to be interpreted correctly.
Alternatively you can use forwardslashes instead of backslashes like
sage K:/sageexample/example.sage.sage
This will be interpreted correctly as a Windows path as long at it starts with a valid drive letter.Tue, 27 Mar 2018 04:17:25 -0500http://ask.sagemath.org/question/41568/how-to-sage-a-sage-file/?answer=41788#post-id-41788