gap-packages / JupyterKernel

Native Jupyter kernel for GAP
https://gap-packages.github.io/JupyterKernel/
BSD 3-Clause "New" or "Revised" License
19 stars 12 forks source link

last, last2, ... #18

Open pedritomelenas opened 7 years ago

pedritomelenas commented 7 years ago

last returns true, and last2 returns "2 be defined". Probably you commented this already in Siegen. This is just to have it recorded. Thanks, Pedro

pedritomelenas commented 7 years ago

I remember we also talked about the possibility of storing all outputs inputs and be able to refer to them as _n or something. May be in gap lastn would be better.

markuspf commented 6 years ago

to be clear: do you want the last inputs or the last outputs? last, last2 store the last results (which, tbh, we should do with a list, we just have to call it something other than "last" because of backwards compatibility).

For inputs, jupyter claims to have some history functionality, which I couldn't figure out how to use yet (and the kernel functions for that are currently just stubs).

pedritomelenas commented 6 years ago

for me the outputs are fine. The problem is that in my install even last is not working, it always return true... So for instance, if you evaluate 1;, and then last+1; you get an error.

olexandr-konovalov commented 3 years ago

Checked now: after some calculations, last returns true and last2 and last3 returs fail. This is still wrong...

olexandr-konovalov commented 3 years ago

1.5 Known Limitations and Caveats now mentions this.