On Thu, Apr 9, 2009 at 7:31 AM, Flavio Coelho <fccoe...@gmail.com> wrote: > > I am not sure I understood what you are suggesting, but if you mean to > ask if this is something that can be done in an "adhoc" manner, > separated from Sage notebook's code, then the answer is no. This would > have to be part of the standard way Sage generates the response to the > browser when you evaluate a cell. This way it would be able to catch > the exception, analyze the traceback, and generate the html. > > This would not impose a dependency on Django, it would be an > adaptation of the code present in Django to the actual web framework > used by Sage (which I have no Idea what it is). > > did this answer your question?
I think so. Does this roughly summarized correctly what you are requesting? When you enter a command which yields a traceback, you want Sage to return a link which you click on to get more information on the error. Also, the way that webpage is generated is to use code adapted from django. > > On 9 abr, 12:17, David Joyner <wdjoy...@gmail.com> wrote: >> My first question is, can you implement this yourself >> (assuming you have django installed along with sage)? >> >> On Thu, Apr 9, 2009 at 6:55 AM, Flavio Coelho <fccoe...@gmail.com> wrote: >> >> > Hi, >> >> > I have a feature request for Sage Notebook interface: >> >> > It is the adoption of the debugging capabilities present in the Django >> > framework. An image here is worth a thousand words: >> >> >http://thoughtandtheory.com/blog/wp-content/uploads/2007/10/fbml_beta... >> >> > When django catches an error it creates a web page with the full >> > traceback (which Sage already provides), but also adds collapsible >> > <div>s with a list of the local variables at each level of the stack, >> > making it very easy to figure out what is going on with your code. >> >> > IMHO, this would be the best way to offer debugging capabilities to >> > sage code without resorting to complex integration with external >> > debuggers. >> >> > Besides, the python code and html templates are already written for >> > Django, which would make it reasonably easy to port to Sage >> > notebook... >> >> > thanks, >> >> > Flávio > > > --~--~---------~--~----~------------~-------~--~----~ 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 URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---