[sage-devel] Re: interactive widgets in the notebook

2007-12-03 Thread William Stein
On Dec 3, 2007 1:19 PM, Jason Grout <[EMAIL PROTECTED]> wrote: > > As for examples of how to use GUI widgets in the client, the 3D Applet > > demo I posted a little bit ago shows some of what I am thinking about. > > Perhaps the user wants a slider for changing the zoom level instead > > of a dra

[sage-devel] Re: interactive widgets in the notebook

2007-12-03 Thread Jason Grout
Ted Kosan wrote: > Jason wrote: > >>> I really like the technique of using Jython in the client because its >>> like having a subset of SAGE on the client. Users can easily create >>> GUI widgets with just a few lines of "SAGE" code. Jython can be >>> included in an applet too. >> This is inter

[sage-devel] Re: interactive widgets in the notebook

2007-12-02 Thread Ted Kosan
Jason wrote: > > I really like the technique of using Jython in the client because its > > like having a subset of SAGE on the client. Users can easily create > > GUI widgets with just a few lines of "SAGE" code. Jython can be > > included in an applet too. > > This is interesting. Can you exp

[sage-devel] Re: interactive widgets in the notebook

2007-12-01 Thread Jason Grout
Ted Kosan wrote: > Jason wrote: > >> Yeah! It works!! :) >> >> I've put a very alpha patch (against 2.8.13) up on trac #1322 that >> implements the following: > > I got it to work and I must admit its pretty cool! > > I'm going to have to think about the possibilities you have opened up > with

[sage-devel] Re: interactive widgets in the notebook

2007-12-01 Thread Ted Kosan
Jason wrote: > Yeah! It works!! :) > > I've put a very alpha patch (against 2.8.13) up on trac #1322 that > implements the following: I got it to work and I must admit its pretty cool! I'm going to have to think about the possibilities you have opened up with this approach. Ted --~--~---

[sage-devel] Re: interactive widgets in the notebook

2007-11-30 Thread Jason Grout
Jason Grout wrote: > > Hi everyone, > > I've been thinking about how to implement interactive widgets in the > notebook. Things like sliders, buttons, etc., that allow interactivity > like Maplets in Maple or the Manipulate command in Mathematica 6. > Here's an example of an interface: > >

[sage-devel] Re: interactive widgets in the notebook

2007-11-30 Thread Ted Kosan
Robert wrote: > Never seen that before, it looks pretty nice, and is BSD licensed. We > looked around a lot about a year ago for open-source 3d applets but I > never saw this. Can it graph arbitrary 3d shapes/polygons? It doesn't > feel OpenGL accelerated, but I could be wrong. I think it can pl

[sage-devel] Re: interactive widgets in the notebook

2007-11-30 Thread Jason Grout
Ted Kosan wrote: > Robert wrote: > >> That is the (lofty!) goal. Take a look at sage/plot/plot3d/* to see a >> start, though much remains to be done. (I am speaking in terms of >> emulating JavaView, not the interactive stuff, though it could >> eventually go there too.) > > As a step towards so

[sage-devel] Re: interactive widgets in the notebook

2007-11-29 Thread Robert Bradshaw
On Nov 29, 2007, at 9:54 PM, Ted Kosan wrote: > Robert wrote: > >> That is the (lofty!) goal. Take a look at sage/plot/plot3d/* to see a >> start, though much remains to be done. (I am speaking in terms of >> emulating JavaView, not the interactive stuff, though it could >> eventually go there to

[sage-devel] Re: interactive widgets in the notebook

2007-11-29 Thread Ted Kosan
Robert wrote: > That is the (lofty!) goal. Take a look at sage/plot/plot3d/* to see a > start, though much remains to be done. (I am speaking in terms of > emulating JavaView, not the interactive stuff, though it could > eventually go there too.) As a step towards something like JavaView, I have

[sage-devel] Re: interactive widgets in the notebook

2007-11-29 Thread Robert Bradshaw
On Nov 29, 2007, at 5:44 PM, Ted Kosan wrote: > Jason wrote: > >> I think something like this was the goal of the work done by >> Robert with >> the 3d graph viewer in Java that is (or at least, was) included in >> Sage. >> I think JavaView was looked at before and had some licensing >> res

[sage-devel] Re: interactive widgets in the notebook

2007-11-29 Thread Ted Kosan
Jason wrote: > I think something like this was the goal of the work done by Robert with > the 3d graph viewer in Java that is (or at least, was) included in Sage. > I think JavaView was looked at before and had some licensing > restrictions (so couldn't be included in Sage), but others more > k

[sage-devel] Re: interactive widgets in the notebook

2007-11-29 Thread Jason Grout
Ted Kosan wrote: > Jason wrote: > >> I've been thinking about how to implement interactive widgets in the >> notebook. Things like sliders, buttons, etc., that allow interactivity >> like Maplets in Maple or the Manipulate command in Mathematica 6. > > What do you think about adding capabilitie

[sage-devel] Re: interactive widgets in the notebook

2007-11-29 Thread Ted Kosan
Jason wrote: > I've been thinking about how to implement interactive widgets in the > notebook. Things like sliders, buttons, etc., that allow interactivity > like Maplets in Maple or the Manipulate command in Mathematica 6. What do you think about adding capabilities like the following to SAGE

[sage-devel] Re: interactive widgets in the notebook

2007-11-19 Thread Jason Grout
Sorry to reply to myself, but here is a refinement and examples from some more brainstorming. Jason Grout wrote: > command. I think William's idea is the way to go: make the variable > equal to a slider in the front end and make that variable local to one > input cell. The only way to chang

[sage-devel] Re: interactive widgets in the notebook

2007-11-19 Thread Jason Grout
William Stein wrote: > On Nov 17, 2007 6:14 PM, Jason Grout <[EMAIL PROTECTED]> wrote: > \> >> I'm pretty excited about this! I think it would be extremely amazingly useful if you could make up some more examples like this one sage: a = Slider(1,10) sage: plot(sin(a()*x),

[sage-devel] Re: interactive widgets in the notebook

2007-11-18 Thread Ondrej Certik
On Nov 17, 2007 6:29 PM, Jason Grout <[EMAIL PROTECTED]> wrote: > > > Hi everyone, > > I've been thinking about how to implement interactive widgets in the > notebook. Things like sliders, buttons, etc., that allow interactivity > like Maplets in Maple or the Manipulate command in Mathematica 6.

[sage-devel] Re: interactive widgets in the notebook

2007-11-17 Thread William Stein
On Nov 17, 2007 6:14 PM, Jason Grout <[EMAIL PROTECTED]> wrote: \> >> I'm pretty excited about this! I think it would be extremely > >> amazingly > >> useful if you could make up some more examples like this one > >> > >> sage: a = Slider(1,10) > >> sage: plot(sin(a()*x),-3,3) > > > > Why not jus

[sage-devel] Re: interactive widgets in the notebook

2007-11-17 Thread Jason Grout
William Stein wrote: > On Sat, 17 Nov 2007 09:29:27 -0800, Jason Grout <[EMAIL PROTECTED]> wrote: [snip] > > I'm pretty excited about this! I think it would be extremely amazingly > useful if you could make up some more examples like this one > > sage: a = Slider(1,10) > sage: plot(sin(a()*x),

[sage-devel] Re: interactive widgets in the notebook

2007-11-17 Thread Jason Grout
David Harvey wrote: > > On Nov 17, 2007, at 7:41 PM, William Stein wrote: > >> I'm pretty excited about this! I think it would be extremely >> amazingly >> useful if you could make up some more examples like this one >> >> sage: a = Slider(1,10) >> sage: plot(sin(a()*x),-3,3) > > Why not jus

[sage-devel] Re: interactive widgets in the notebook

2007-11-17 Thread David Harvey
On Nov 17, 2007, at 7:41 PM, William Stein wrote: > I'm pretty excited about this! I think it would be extremely > amazingly > useful if you could make up some more examples like this one > > sage: a = Slider(1,10) > sage: plot(sin(a()*x),-3,3) Why not just > plot(sin(a*x),-3,3) instead of

[sage-devel] Re: interactive widgets in the notebook

2007-11-17 Thread William Stein
On Sat, 17 Nov 2007 09:29:27 -0800, Jason Grout <[EMAIL PROTECTED]> wrote: > I've been thinking about how to implement interactive widgets in the > notebook. Things like sliders, buttons, etc., that allow interactivity > like Maplets in Maple or the Manipulate command in Mathematica 6. > Here's a