Archive for the ‘sage’ tag
dsage update
A pretty big rewrite of the worker part of dsage landed in trac now. It’s ticket #3600 on the Sage trac and is eagerly awaiting review. Here’s a quick rundown of the major changes:
1. Workers no longer poll the server for new jobs.
2. Workers no longer poll sage for when the job finishes.
3. Doctests run much more reliably now, and in much less time (no need for # long time now)
4. The worker, as well as the server use twistd now, this make things like running them under a profile
trivial.
Some neat sage command line options
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