First time here? Check out the FAQ!
answered 2020-01-13 08:42:34 +0100
The following code works:
gp.eval("square(x)=x^2") @interact def _(x=2): print(gp.function_call("square",[x]).sage())