First time here? Check out the FAQ!
answered 5 years ago
The following code works:
gp.eval("square(x)=x^2") @interact def _(x=2): print(gp.function_call("square",[x]).sage())