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? On 9 abr, 12:17, David Joyner <[email protected]> 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 <[email protected]> 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 [email protected] 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 -~----------~----~----~----~------~----~------~--~---
