this way Python does not know anything about GP functions.
You need to pass the input/output from/to Python.

On Sun, 12 Jan 2020, 14:06 Pedja, <[email protected]> wrote:

> Why the following code doesn't work inside Sage Cell?
>
> gp("""
> square(x)=x^2;
> """)
> @interactdef _(x=2):
>     print(square(x))
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-support" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sage-support/25a5f980-f93d-4721-94d4-e5f1677b285d%40googlegroups.com
> <https://groups.google.com/d/msgid/sage-support/25a5f980-f93d-4721-94d4-e5f1677b285d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/CAAWYfq0jijYnRgkrsBz__rEmjf_%2BSFWMXZ3-K2T5kAxf8D-yQA%40mail.gmail.com.

Reply via email to