Permalinks of interacts

34 views
Skip to first unread message

Andrey Novoseltsev

unread,
Apr 5, 2013, 3:59:01 PM4/5/13
to sage-notebook
Hello,

If I use a permalink for a cell containing interact code, it is a link
to this code. How difficult it would be to implement parmalinks that
remember values entered in the interact? I.e. how difficult it is to
substitute/set default values of interact controls when generating a
permalink?

Thank you!
Andrey

Jason Grout

unread,
Apr 5, 2013, 4:18:51 PM4/5/13
to sage-n...@googlegroups.com
You could just change the code to have the new defaults, right? Then
generate a permalink for the code with the different defaults.

Maybe you're also thinking of a way to save sets of parameter values so,
for example, you could easily click a dropdown and have it automatically
fill out those values. Yes, that would be great to have, but no, it's
not implemented right now. How difficult? Good question. I can't
imagine it would be too terribly hard.

Jason


Andrey Novoseltsev

unread,
Apr 5, 2013, 4:32:59 PM4/5/13
to sage-notebook
On Apr 5, 2:18 pm, Jason Grout <jason-s...@creativetrax.com> wrote:
> On 4/5/13 2:59 PM, Andrey Novoseltsev wrote:
>
> > Hello,
>
> > If I use a permalink for a cell containing interact code, it is a link
> > to this code. How difficult it would be to implement parmalinks that
> > remember values entered in the interact? I.e. how difficult it is to
> > substitute/set default values of interact controls when generating a
> > permalink?
>
> You could just change the code to have the new defaults, right?  Then
> generate a permalink for the code with the different defaults.

*I* can, but what if the user is not familiar with Python/Sage at all
and does not clearly see where the default parameters are? Or if the
code box is not shown?

> Maybe you're also thinking of a way to save sets of parameter values so,
> for example, you could easily click a dropdown and have it automatically
> fill out those values.

Yes, this would be great, especially if it was possible to give some
meaningful (or just short) names to these presets rather than listing
values for all 10 input boxes. But again, it would be nice to create
new presets without knowledge/modification of Sage code.

Jason Grout

unread,
Apr 5, 2013, 5:34:20 PM4/5/13
to sage-n...@googlegroups.com
Yep, definitely +1. It's a little tricky because it'd be great to have
a GUI to make the presents (i.e., a "snapshot" button), but you want
those presets to somehow be saved back to the actual text code of the cell.

Thanks,

Jason



Andrey Novoseltsev

unread,
Apr 9, 2013, 12:33:49 PM4/9/13
to sage-notebook
I've opened
https://github.com/sagemath/sagecell/issues/404

Being able to save presets into a database probably has a lot of
security problems and is not as useful as making links with new
defaults that can be organized/posted somewhere by users themselves.

Thank you!
Andrey
Reply all
Reply to author
Forward
0 new messages