#7379: layout interact controls
---------------------------+------------------------------------------------
Reporter: jason | Owner: boothby
Type: enhancement | Status: needs_review
Priority: major | Milestone: sage-4.4.2
Component: notebook | Keywords:
Author: Jason Grout | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
---------------------------+------------------------------------------------
Comment(by mhampton):
This is great, thanks very much for working on it. The only problem I've
seen so far is the following doctest failure for the notebook:
{{{
sage -t "local/lib/python2.6/site-
packages/sagenb-0.8-py2.6.egg/sagenb/notebook/interact.py"
**********************************************************************
File "/Users/mh/sagestuff/sage-4-x/local/lib/python2.6/site-
packages/sagenb-0.8-py2.6.egg/sagenb/notebook/interact.py", line 2205:
sage: @interact
def _(n=(Integer(10),Integer(100),Integer(1)), auto_update=False):
show(factor(x**n - Integer(1)))
Exception raised:
Traceback (most recent call last):
File "/Users/mh/sagestuff/sage-4-x/local/bin/ncadoctest.py", line
1231, in run_one_test
self.run_one_example(test, example, filename, compileflags)
File "/Users/mh/sagestuff/sage-4-x/local/bin/sagedoctest.py", line
38, in run_one_example
OrigDocTestRunner.run_one_example(self, test, example, filename,
compileflags)
File "/Users/mh/sagestuff/sage-4-x/local/bin/ncadoctest.py", line
1172, in run_one_example
compileflags, 1) in test.globs
File "<doctest __main__.example_99[9]>", line 2, in <module>
def _(n=(Integer(10),Integer(100),Integer(1)), auto_update=False):
File "/Users/mh/sagestuff/sage-4-x/local/lib/python/site-
packages/sage/misc/misc.py", line 2632, in my_wrap
return func(*args)
File "/Users/mh/sagestuff/sage-4-x/local/lib/python2.6/site-
packages/sagenb-0.8-py2.6.egg/sagenb/notebook/interact.py", line 2519, in
interact
html(C.render())
File "/Users/mh/sagestuff/sage-4-x/local/lib/python2.6/site-
packages/sagenb-0.8-py2.6.egg/sagenb/notebook/interact.py", line 2058, in
render
s = "%s%s"%(self.render_controls(), self.render_output())
File "/Users/mh/sagestuff/sage-4-x/local/lib/python2.6/site-
packages/sagenb-0.8-py2.6.egg/sagenb/notebook/interact.py", line 1994, in
render_controls
layout = [[c.var()] for c in self.__controls]
AttributeError: 'UpdateButton' object has no attribute 'var'
}}}
I'll try to do a little more testing and look at #8959 this weekend.
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7379#comment:8>
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.