cell server and @interact: button not always working

17 views
Skip to first unread message

Dan Drake

unread,
Apr 23, 2012, 2:56:08 AM4/23/12
to sage-n...@googlegroups.com
I made a nice @interact, but one of the buttons isn't working. See
http://aleph.sagemath.org/?q=ab8e07c5-5ef6-4c1d-a9eb-e99f6364a38a or the
monster URL below.

The problem is, I can't hit "Next" twice in a row. If I do "prev" or
"zoom", then "next" works properly, otherwise it just doesn't respond.

I've tested this on Firefox, Chromium, and IE 9. All give the same
behavior. This works properly in the notebook (version 4.8).

Any ideas?

Dan

http://aleph.sagemath.org/?z=eJytWEuT2zYMvvtXIN50JO3KXjtNH-NEk870vtPpsc7WoSzKZiKLGpGy5GTy3wuQelB-JDnUh1VEggDx4cNDSXgKOa-1zP00BBZCkkZPMufBagL4m06n5llyXZU56D1H6UYDK4pSNuLAtJA5sFTzEjzmQaVEvoMno9BTcOB6L5P5SJVAg1KjHWuBfkkKESQiTf00cM0xmEHqs-Axob-TSdJftsikpgs3B5HTX9aEUEiRa3X74lt5KDKuOdBhSGVpVtMq3xonUmB5YpasItiJI89B5EbPB7v4YX6uHW9-eZneC3iIIBM599e-VbBePIewCEJw39PhJQjwnU4ofcp45K28sIep-21lJsvIK3nijQxpjIzvvc9fNpvFS29sgkw650K40HrkpRZblm1YJnb5gec6msZSa3mYUszcO8JbWADPFIeplsXUXoIARfcLJkoEDXheHXjJNPc_i6I928VovVyho0P8t1VZhpZYkVHQ77Se2aAj6XieENLDAQSLxTyLrNtfFl9fenO8CRLTzx-WwYhO-DCvDo8GlUXJj53iVqX3rSSoTZRA8R1BhWyRxPy0lAejCrQ0ylZQc_iIew6zJkabby2m5hkEdMC35hfuS2qeQTAmXgEDr0ZqwkHJc3jJlMIhZCcXnpu6YOClHiSEAWmIYdEz0Gw49xgT74J3P8A8c60z0sEotMVkcgdPsjYos62uWAZ_INbIwK0GpasUy81EaeQjIkcFDuVriiNPsGjxcmP3EPdEKI2hrITaQ8x1zbEIUGY_UmLDds_yHUW63uN6TWo-S4y5n2DB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Mc4SlFI0qwtZ0RAnUeIT7SHLD-3HplUjTJNTB5ZlOCbSSElzk12NxW7Hy5udjrrYaC3sm9_t7kfbo7Wwb4h4yByjQfw6fvbrok11lMIhHvALgv6HgK9shU79IdWDFRXjPl3sp8KAdvshMrng5FztZW16bnQWDopDdMbEkyPX4XBy5KybgXt36uWbnL6F8BGsPPfTttmMP2zPie58DFll6HZIfuKfV4OzRtPI22aDvv4HhK9NMw%3D%3D
--
--- Dan Drake
----- http://mathsci.kaist.ac.kr/~drake
-------

signature.asc

Jason Grout

unread,
Apr 23, 2012, 6:45:03 AM4/23/12
to sage-n...@googlegroups.com
On 4/23/12 1:56 AM, Dan Drake wrote:
> I made a nice @interact, but one of the buttons isn't working. See
> http://aleph.sagemath.org/?q=ab8e07c5-5ef6-4c1d-a9eb-e99f6364a38a or the
> monster URL below.
>
> The problem is, I can't hit "Next" twice in a row. If I do "prev" or
> "zoom", then "next" works properly, otherwise it just doesn't respond.
>
> I've tested this on Firefox, Chromium, and IE 9. All give the same
> behavior. This works properly in the notebook (version 4.8).
>
> Any ideas?

We've made the distinction between a selector having buttons and a
button bar initiating action at button presses. A selector selects an
option (so selecting the same option is a no-op, and the selection
should be highlighted). A button bar has, well, a bar of buttons, each
of which initiates an action. If you change your line:

step = ['Next', 'Prev', 'Zoom', 'Reset']

into

step = ButtonBar(['Next', 'Prev', 'Zoom', 'Reset'])

then it works well.

Is this incompatibility likely to hurt lots of people?

Thanks,

Jason

Dan Drake

unread,
Apr 23, 2012, 11:31:16 PM4/23/12
to sage-n...@googlegroups.com
On Mon, 23 Apr 2012 at 05:45AM -0500, Jason Grout wrote:
> We've made the distinction between a selector having buttons and a
> button bar initiating action at button presses. A selector selects
> an option (so selecting the same option is a no-op, and the
> selection should be highlighted). A button bar has, well, a bar of
> buttons, each of which initiates an action. If you change your
> line:
>
> step = ['Next', 'Prev', 'Zoom', 'Reset']
>
> into
>
> step = ButtonBar(['Next', 'Prev', 'Zoom', 'Reset'])
>
> then it works well.
>
> Is this incompatibility likely to hurt lots of people?

I don't mind that, but it's not the same as Sage @interacts, right? I
would prefer that they work the same in the Sage notebook and in the
cell server. What are the synchronization plans?

Dan

signature.asc

Jason Grout

unread,
Apr 24, 2012, 2:23:47 AM4/24/12
to sage-n...@googlegroups.com
On 4/23/12 10:31 PM, Dan Drake wrote:
> On Mon, 23 Apr 2012 at 05:45AM -0500, Jason Grout wrote:
>> We've made the distinction between a selector having buttons and a
>> button bar initiating action at button presses. A selector selects
>> an option (so selecting the same option is a no-op, and the
>> selection should be highlighted). A button bar has, well, a bar of
>> buttons, each of which initiates an action. If you change your
>> line:
>>
>> step = ['Next', 'Prev', 'Zoom', 'Reset']
>>
>> into
>>
>> step = ButtonBar(['Next', 'Prev', 'Zoom', 'Reset'])
>>
>> then it works well.
>>
>> Is this incompatibility likely to hurt lots of people?
>
> I don't mind that, but it's not the same as Sage @interacts, right?

You're right. The current sagenb.org interacts confuse selectors with
button bars.


> I
> would prefer that they work the same in the Sage notebook and in the
> cell server. What are the synchronization plans?

We plan to port our implementation back to Sage this summer.

Thanks,

Jason

Reply all
Reply to author
Forward
0 new messages