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

Enumerator output causes its unrolling into a list #72

Open olexandr-konovalov opened 6 years ago

olexandr-konovalov commented 6 years ago

Works fine in the terminal:

gap> e := Enumerator(SymmetricGroup(5));
<enumerator of perm group>
gap> e := Enumerator(SymmetricGroup(10));
<enumerator of perm group>
gap> e := Enumerator(SymmetricGroup(99));
<enumerator of perm group>

In Jupyter, one should suppress the output with a double semicolon, otherwise it tries to print a list of all elements of a group.

markuspf commented 6 years ago

This is a bug in GAP, not in JupyterKernel; the selected method for ViewString is the one for a list.