A way to request user input in Sagemath cell

asked 2021-01-08 10:51:05 -0600

Cyrille gravatar image

updated 2021-01-09 16:06:34 -0600

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

Comments

1

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

Sage Interact Quickstart

@interact
def _(f=input_box(x^2,width=20),
color=color_selector(widget='colorpicker', label=""),
axes=True,
fill=True,
zoom=range_slider(-3,3,default=(-3,3))):
    show(plot(f,(x,zoom[0], zoom[1]), color=color, axes=axes,fill=fill))
ortollj gravatar imageortollj ( 2021-01-08 11:55:03 -0600 )edit

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

ortollj gravatar imageortollj ( 2021-01-08 13:34:38 -0600 )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 03:32:03 -0600 )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 06:47:16 -0600 )edit