> Here's one possibility: > > @interact > def my_interact(a=locator()): > print a > show(plot(sin(x), (x,0,1)), locator="a")
Looks good to me. Would that encapsulate the possibility that there might be more than one locator, possibly created dynamically? By the way, the bounty has increased to 50 pounds worth of Amazon books (80 dollars-ish) thanks to the generosity of a fellow blogger. See the bottom of the original blog post for details. Best Wishes, Mike -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org