William Stein wrote: > > That "sage -t foo.sage" doesn't import the functions somehow is a > sucky new-ish bug, that needs to be fixed ASAP, in my opinion. This > is related to recent major changes in how sage -t works on *.sage > files. See this ticket I just made: > > http://trac.sagemath.org/sage_trac/ticket/4750 >
So maybe it *did* work for before! I thought it did. > I don't think this will be hard to fix -- probably just a few lines of > code in the > right place. I was looking at the code last night. I think it would boil down to being able to load a .sage file programmatically (i.e., with a function call). That involves converting it to a .py file, then loading it (execfile), right? > > Note that you could also submit a patch to Sage with the code you're > doctesting. > I did that with all the tests from both of the books I published, and > I encourage you and many others to do the same with the code from your > article. The code would go in a file > > devel/sage/sage/tests/ > > like the file devel/sage/sage/tests/book_stein_modform.py > > In fact, I could imagine having dozens of files in that directory, and > when doctests break there, we could notify the authors before > releasing the version of Sage that breaks their doctests for feedback > -- then they could update their papers or Sage. Maybe this is how > the technical aspect of jsage should work: > http://www.sagemath.org/library/jsage/index.html That would be very nice and show people that we are serious about people using Sage to do research. How many other software systems will include third-party code in their system to do testing? > Here's a question for you -- is there a way to embed a block of text > in an extractable way inside a pdf, etc.? If so, I think we could > easily change the notebook so ".pdf" is one of the formats for > uploading a sage worksheet. Then you could somehow embed the > worksheet itself in the pdf. Then tell readers of the pdf -- "hey, > just upload this pdf you're reading right now to any sage notebook > server, and you're good to go!" > > Thoughts? That would be *really* cool! I'll look at this soon, unless someone beats me to it. For reference, this package embeds movie files into a pdf: http://www.ctan.org/tex-archive/macros/latex/contrib/movie15/ Jason --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-support@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-support URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---