On 03/24/2010 10:46 PM, Rado wrote:
jquery (hard to overstate how cool that JS library is) has the ability
to do all of that so I looked around and found the following jQuery
plugin http://gregweber.info/projects/uitableedit.html . With a few
tweaks I made it perform as you describe it. I hosted it on my webpage
and with the following code you can call it from any of your
notebooks.
def matrixedit(m=3,n=3,fill=0):
h = m*30 + 100
w = n*30 + 100
print '<html><iframe style="border:0px" height="%(h)s px" width="%
(w)s px" src="http://www.math.uiuc.edu/~rkirov2/matrixedit/index.html?
m=%(m)s&n=%(n)s&fill=%(fill)s"></html>' % locals()
matrixedit()
There is still room for improvement if anybody is interested in
getting their hands dirty with JS (it took me awhile to get the right
tweaks in, and I still dont understand it all).
Nice!
We really ought to look at getting notebook code cells to be
content-editable divs so that we can put all of these cool controls
right into a code cell.
Thanks,
Jason
--
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org
To unsubscribe from this group, send email to sage-devel+unsubscribegooglegroups.com or
reply to this email with the words "REMOVE ME" as the subject.