Hm, the issue is that there's really big startup costs for Sage; it looks based on my cursory understanding of subprocess that there's a couple seconds of hang-time for each calculation one wants to execute. This doesn't really scale. I know there's something involving spawning a pile of kernels in the cell server, which is something that could work nicely to get around the time problem, but I'm not sure where to look to learn how to use those kernels appropriately.
The idea is to build something for dropping exercises into the text of some notes, websites, maybe eventually moodle... So this means doing some initializing code, displaying the 'text' of the problem, collecting a user response, and evaluating the response, and repeating. I also like the idea of some webwork-style randomization of the problems, which means the initialization and display would be less trivial to pre-cache. cheers! On Friday, March 29, 2013 12:47:11 PM UTC+3, David Roe wrote: > > You could just use call from the Python subprocess module, which is > documented in the Python docs. It depends on exactly what functionality > you need from Sage. > David > > -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at http://groups.google.com/group/sage-devel?hl=en. For more options, visit https://groups.google.com/groups/opt_out.