Comment by kcrisman for (Edit: I originally thought that there wasn't a file...
Nice - that is useful! But of course there is a walk.py ;-)
View ArticleComment by rtrwalker for (Edit: I originally thought that there wasn't a file...
If my ultimate goal is to write some sort of package, is there any point to me writing *.sage files in the first place or should I start out writing *.py scripts and use "from sage.all import *" and...
View ArticleComment by John Palmieri for (Edit: I originally thought that there wasn't a...
@kcrisman: if you run "load_attach_mode(attach_debug=False)", then I think it won't save the preparsed file: it will preparse walk.sage, save it as a string, and then just read the string.
View ArticleComment by kcrisman for (Edit: I originally thought that there wasn't a file...
Also, I wonder if sometimes it *does* create walk.py in the proper directory. At least, I have some .py files I didn't create that are in the same directory as the .sage files I use for my research....
View ArticleComment by kcrisman for (Edit: I originally thought that there wasn't a file...
@rtwalker: I think that to start off, the advantage of the .sage files is that you get a quick start and can see what happens. Then when you make .py files out of them, you can later (usually by trial...
View ArticleComment by John Palmieri for (Edit: I originally thought that there wasn't a...
While in Sage, run "load_attach_mode()". This should return "(False, True)", and the second entry "True" says that Sage will save the preparsed file to the directory SAGE_TMP, defined (in...
View ArticleComment by rtrwalker for (Edit: I originally thought that there wasn't a file...
@John Palmieri after repeating my procedure I still could not find walk.py in the directory that you suggested (all there was was an empty 'interface' directory. Regardless, with your sage --preparse...
View ArticleAnswer by John Palmieri for The sage tutorial Loading and Attaching Sage...
(Edit: I originally thought that there wasn't a file walk.py, but I think that's wrong.) Look in `$HOME/.sage/temp/DIR0/DIR1/` where `$HOME` is your home directory, DIR0 has a name like `$HOSTNAME` and...
View ArticleWhere is walk.py located after I attach walk.sage?
The sage tutorial [Loading and Attaching Sage files](http://www.sagemath.org/doc/tutorial/programming.html) states that if I create a file such as walk.sage containing: print "Hello world" print 2^4...
View Article