the following works with Sage 9.6.rc1
sage: t=libgap.function_factory('''function()
....: local Q, KQ, rel, A;
....: LoadPackage("qpa");
....: Q:=Quiver(3,[[1,2,"a"],[2,3,"b"]]);
....: KQ:=PathAlgebra(GF(3),Q);
....: AssignGeneratorVariables(KQ);
....: rel:=[a*b];
....: A:=KQ/rel;
....: return A;
....: end;''')
sage: t()
#I Assigned the global variables [ v1, v2, v3, a, b ]
<GF(3)[<quiver with 3 vertices and 2 arrows>]/<two-sided ideal in
<GF(3)[<quiver with 3 vertices and 2 arrows>]>, (1 generators)>>
sage:
I won't want to touch GAP's pexpect interface...
> --
> You received this message because you are subscribed to the Google Groups "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to
sage-devel+...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/sage-devel/4247d756-91f0-49f5-aa4d-20a5e6baf662n%40googlegroups.com.