I haven’t looked at sage -h for a while and was surprised to see many useful convenience features that have been added. I will highlight some ones that I’ve been using constantly that makes Sage development more convenient.
sage -b [branch] -- switch to and build SAGE branch in devel/sage-branch
sage -br [branch] -- switch to, build, and run SAGE branch in devel/sage-branch
sage -clone [new branch] -- clone and run a new branch of the SAGE library from current branch
sage -python -- run the python interpreter
sage -sh -- run $SHELL (/opt/local/bin/zsh) with SAGE environment variables set
sage -t [-optional] [-verbose] [-long] -- test examples in .py, .pyx, .sage or .tex files
-optional -- include examples with 'optional' and 'package'
-long -- include lines with the phrase 'long time'
-verbose -- print debuging output during the test
In particular, sage -sh is really useful for setting all the shell variables.
You can get a list of all the command line options by doing
sage -advanced





Recent Comments