A way to request user input in Sagemath cell

asked 2021-01-08 17:51:05 +0200

Cyrille gravatar image

updated 2021-01-09 23:06:34 +0200

slelievre gravatar image

In this period of pandemic, with students using systems ranging from computer to phone, I was planning to use HTML pages with Sage cells, but they don't support input. Is there a way to request user input in Sage cells?

edit retag flag offensive close merge delete



Hello Cyrille I m not sure I understand the question ! :something like that ?

Sage Interact Quickstart

def _(f=input_box(x^2,width=20),
color=color_selector(widget='colorpicker', label=""),
    show(plot(f,(x,zoom[0], zoom[1]), color=color, axes=axes,fill=fill))
ortollj gravatar imageortollj ( 2021-01-08 18:55:03 +0200 )edit

OOps ! you want to inpu large set of datas ! sorry

ortollj gravatar imageortollj ( 2021-01-08 20:34:38 +0200 )edit

Can you describe a use case you have in mind, where the @interact text fields would not be enough?

Ideally, simplify it to the extreme.

Do you need something in several steps?

slelievre gravatar imageslelievre ( 2021-01-09 10:32:03 +0200 )edit

@Cyrille if you do not answer our questions within a week, I will take a terrible threat !, namely to click on the down arrow at the top of the message. I wouldn't want to be pushed to such extremes ;-).

ortollj gravatar imageortollj ( 2021-01-13 13:47:16 +0200 )edit