On Apr 23, 2007, at 7:32 AM, William Stein wrote: > On 4/23/07, mabshoff <[EMAIL PROTECTED] > dortmund.de> wrote: >> Ok, you can find a copy at http://fsmath.mathematik.uni- >> dortmund.de/~mabshoff/sage/ >> - it is PPC only at the moment. >> >>> >>>> Sounds good - I am trying to figure out if there is a way that the >>>> notebook can tell the server to terminate itself. Currently when I >>>> quit the notebook sage keeps running and even a "forced quit" of >>>> the >>>> sage.app via dock does not terminate sage itself. >>> >>> We could definitely have a way for the notebook to turn off the >>> server. >>> But I think the best way is to just have it keep running and >>> timeout. >>> That way people can just quit their web browser. This is house some >>> software I installed from HP for my office printer works, by the >>> way. >>> >> >> Ok, any pointers or suggestions on how to do this? > > I'll have to think about it. It's a somewhat tricky problem, > possibly involving > threads or improving the cleaner process.
I think it might be handy to have some kind of a timeout parameter on the cleanup processes (though I'm not sure how one would communicate "inactivity", touch a file whenever you're doing something). Alternatively, put something in the "main" loop (or using timed callback functions) in the sage notebook server. An idle notebook--ie one that's open but not doing any calculations could poll the server at some interval shorter than the timeout interval so that the server remains up as long as the webpage does, but not long after. - Robert --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/ -~----------~----~----~----~------~----~------~--~---