On Aug 2, 2011, at 7:10 PM, samontab wrote: > Hi, > > First of all, Sage is awesome, thanks for putting everything together > and making this happen... > > I have a problem though, I would like to use Sage for many small > calculations on demand. This is fine if I am using Sage manually, but > when I want to automate these calculations creating scripts, it takes > a lot of time to run them. > > Every time Sage starts, it takes some time for loading. Once it is > loaded, calculations perform fast. The problem I am having is that > every time I run a script, Sage has to start from scratch, so the > calculation takes a lot of time, even when the calculations itself are > trivial. > > The only solution I can think of is hacking the notebook() interface > so that I can access it through the command line, and evaluate my > scripts with it as the evaluate link does in the web interface. Is > there any other way I could keep the Sage environment loaded while > calling the scripts? Am I missing something obvious? or do you have > any hints on how can I use that server to run the scripts?
Yes, this is one of the things that also frustrates me. There is some work being done on it, in fact it's the first item on the Sage Days 32 wishlist: http://wiki.sagemath.org/days32/wishlist Instead of hacking the notebook, you can just use the simple server API: http://www.sagemath.org/doc/reference/sagenb/simple/twist.html or perhaps the new single cell computer server: http://sagemath.org:5467/ -Ivan -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org