#8842: sage notebook interacts: format exceptions nicely
---------------------------+------------------------------------------------
Reporter: was | Owner: jason, was
Type: enhancement | Status: new
Priority: major | Milestone: sage-5.0
Component: notebook | Keywords:
Author: | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
{{{
If I write a function in a cell of a notebook like:
@interact
def foo(a = input_box(default=0, type=Integer)):
# do something here
pass
And the user enters something that cannot be coerced to Integer, then
I get a verbose (and rather unhelpful) exception, which, as far as I
can see, can't be caught inside of foo. So, I would suggest that if a
type is specified in input_box, and the coercion fails that a nicer
looking message be given (perhaps next to the box that a specifies).
Victor
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/8842>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
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-trac?hl=en.