I opened Gap Using GAP in Sage with gap_console() and after reusing the results
I need to run some program in GAP and use the output in another program in Sage.
I tried running gap_console()
and then running "a := 1;" in GAP.
After exiting the gap, that console and going gack to Sage, my calculations were lost. lost.
When I asked the value of "a" in Sage, I got:
NameError: name "a" is not defined.
Is there any command in Sage to solve this problem? I need to run some programs in Gap and use its output in another program in Sage. For example I write gal_console() and then "a:= 1;" in gap. When I quite the gap and bake to Sage and finally ask the values of "a" I have this response: name "a" is not defined.