proposal for "interactive data input" functionality in notebook

1 view
Skip to first unread message

Jurgis Pralgauskis

unread,
Apr 4, 2008, 7:43:30 AM4/4/08
to sage-devel, sage...@googlegroups.com
Hello,

the idea was inspired by @interact
but sometimes I'd need input box (or text area) not only for one
block, but for the rest of worksheet
the idea came when experimenting wiht matrixes (as their input is not
comfortable):
- textarea, where I can enter rows separated with spaces would be superb
- there could be a rows x cols table with input boxes (with indexes)
inside each cell

"input" stuff would be convenient for first time users to experiment
lets say, if they could choose the function (or data file) from a listbox
and then see the steps (blocks) of analysis (and can experiment with
some blocks if they want)

if "input" is combined with auto recalculate (and optionally can hide
intermediate blocks, just show the (last) output),
then converting existing worksheet to interact functionality would be a breeze

"input" could also do some parsing and validation.
I guess "input" definition blocks should be autonomous (not mixed with
other code), so that it would be clear at what code position we
already have the values

probably the syntax could be just the same as in @interact
just at least add new inputtype for textarea

well, I can use usual (python) blocks to input data -- that seems not
a big problem (but this is inconvenient (especially in matrix case))
I also know http://sagemath.blogspot.com/2008/02/mathematics-research-education-and-sage.html

is there some sage-edu wishlist on http://sagetrac.org/sage_trac or somewhere?

and for the sake of interest:
what (modules) should be considered to hack to implement "input" functionality

Best Regards

ps.: by the way -- one more idea could be also implemented with
interact (as wims is based on pari, as I know)
http://wims.unice.fr/wims/wims.cgi?module=tool%2Fanalysis%2Ffunction.en

--
Jurgis Pralgauskis
omni: 8-616 77613; teledema: 8-657 65656;
jabber: jur...@akl.lt; skype: dz0rdzas;
Don't worry, be happy and make things better ;)

mhampton

unread,
Apr 9, 2008, 1:59:39 PM4/9/08
to sage-edu
There is a suggestion page for interact on the wiki:

http://wiki.sagemath.org/interactSuggestions

although what you want might be outside the range of how far @interact
can be extended.

Cheers,
M. Hampton

On Apr 4, 5:43 am, "Jurgis Pralgauskis" <jurgis.pralgaus...@gmail.com>
wrote:
> Hello,
>
> the idea was inspired by @interact
> but sometimes I'd need input box (or text area) not only for one
> block, but for the rest of worksheet
> the idea came when experimenting wiht matrixes (as their input is not
> comfortable):
> - textarea, where I can enter rows separated with spaces would be superb
> - there could be a rows x cols table with input boxes (with indexes)
> inside each cell
>
> "input" stuff would be convenient for first time users to experiment
> lets say, if they could choose the function (or data file) from a listbox
> and then see the steps (blocks) of analysis (and can experiment with
> some blocks if they want)
>
> if "input" is combined with auto recalculate (and optionally can hide
> intermediate blocks, just show the (last) output),
> then converting existing worksheet to interact functionality would be a breeze
>
> "input" could also do some parsing and validation.
> I guess "input" definition blocks should be autonomous (not mixed with
> other code), so that it would be clear at what code position we
> already have the values
>
> probably the syntax could be just the same as in @interact
> just at least add new inputtype for textarea
>
> well, I can use usual (python) blocks to input data -- that seems not
> a big problem (but this is inconvenient (especially in matrix case))
> I also knowhttp://sagemath.blogspot.com/2008/02/mathematics-research-education-a...
>
> is there some sage-edu wishlist onhttp://sagetrac.org/sage_tracor somewhere?
>
> and for the sake of interest:
> what (modules) should be considered to hack to implement "input" functionality
>
> Best Regards
>
> ps.: by the way -- one more idea could be also implemented with
> interact (as wims is based on pari, as I know)http://wims.unice.fr/wims/wims.cgi?module=tool%2Fanalysis%2Ffunction.en
Reply all
Reply to author
Forward
0 new messages