I installed packages gap, gap-packages and jupyter-notebook from system repository and run
$ sudo install -Dm644 /usr/lib/gap/pkg/jupyterkernel/etc/gap-mode/* -t "/usr/share/jupyter/nbextensions/gap-mode"
$ sudo install -Dm644 /usr/lib/gap/pkg/jupyterkernel/etc/gap-mode.json -t "/usr/share/jupyter/nbconfig/notebook.d"
$ sudo install -Dm644 /usr/lib/gap/pkg/jupyterkernel/etc/jupyter/* -t "/usr/share/jupyter/kernels/gap-4"
$ sudo install -Dm755 /usr/lib/gap/pkg/jupyterkernel/bin/jupyter-kernel-gap -t "/usr/bin"
The issue is that GAP cells are not running. In logs there are errors like
W 2025-08-24 06:54:54.214 ServerApp] Nudge: attempt 10 on kernel 3b2154fe-027e-4df5-9385-74fc55e4f8ab
[W 2025-08-24 06:54:54.215 ServerApp] Nudge: attempt 10 on kernel 3b2154fe-027e-4df5-9385-74fc55e4f8ab
[W 2025-08-24 06:54:54.220 ServerApp] Nudge: attempt 10 on kernel 3b2154fe-027e-4df5-9385-74fc55e4f8ab
[W 2025-08-24 06:54:54.226 ServerApp] Nudge: attempt 10 on kernel 3b2154fe-027e-4df5-9385-74fc55e4f8ab
[W 2025-08-24 06:54:54.231 ServerApp] Nudge: attempt 10 on kernel 3b2154fe-027e-4df5-9385-74fc55e4f8ab
┌───────┐ GAP 4.14.0 of 2024-12-05
│ GAP │ https://www.gap-system.org
└───────┘ Architecture: x86_64-pc-linux-gnu-default64-kv9
Configuration: gmp 6.3.0, GASMAN, readline
Loading the library and packages ...
Packages: AClib 1.3.2, Alnuth 3.2.1, AtlasRep 2.1.9, AutPGrp 1.11, Browse 1.8.21, CRISP 1.4.6, Cryst 4.1.27, CrystCat 1.1.10, CTblLib 1.3.9, curlInterface 2.4.0, FactInt 1.6.3,
FGA 1.5.0, Forms 1.2.12, GAPDoc 1.6.7, genss 1.6.9, IO 4.9.1, IRREDSOL 1.4.4, LAGUNA 3.9.7, orb 4.9.1, Polenta 1.3.10, Polycyclic 2.16, PrimGrp 3.4.4, RadiRoot 2.9,
recog 1.4.3, ResClasses 4.7.3, SmallGrp 1.5.4, Sophus 1.27, SpinSym 1.5.2, StandardFF 1.0, TomLib 1.2.11, TransGrp 3.6.5, utils 0.85
Try '??help' for help. See also '?copyright', '?cite' and '?authors'
gap> LoadPackage("JupyterKernel");
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Loading crypting 0.10.5 (Hashes and Crypto in GAP)
by Markus Pfeiffer (http://www.morphism.de/~markusp/).
maintained by:
Markus Pfeiffer (http://www.morphism.de/~markusp/) and
The GAP Team (support@gap-system.org).
Homepage: https://gap-packages.github.io/crypting/
Report issues at https://github.com/gap-packages/crypting/issues
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Loading json 2.2.2 (Reading and Writing JSON)
by Christopher Jefferson (https://heather.cafe/).
Homepage: https://gap-packages.github.io/json/
Report issues at https://github.com/gap-packages/json/issues
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Loading uuid 0.7 (RFC 4122 UUIDs)
by Markus Pfeiffer (http://www.morphism.de/~markusp/).
maintained by:
The GAP Team (support@gap-system.org).
Homepage: https://gap-packages.github.io/uuid/
Report issues at https://github.com/gap-packages/uuid/issues
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Loading ZeroMQInterface 0.16 (ZeroMQ bindings for GAP)
by Markus Pfeiffer (http://www.morphism.de/~markusp/) and
Reimer Behrends (http://www.mathematik.uni-kl.de/agag/mitglieder/wissenschaftliche-mitarbeiter/dr-reimer-behrends/).
maintained by:
The GAP Team (support@gap-system.org).
Homepage: https://gap-packages.github.io/ZeroMQInterface/
Report issues at https://github.com/gap-packages/ZeroMQInterface/issues
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Loading JupyterKernel 1.5.1 (Jupyter kernel written in GAP)
by Markus Pfeiffer (https://markusp.morphism.de/) and
Manuel Martins (https://github.com/mcmartins).
with contributions by:
Thomas Breuer,
Pedro García-Sánchez,
Sebastian Gutsche,
Max Horn,
Fernando Isuru,
Zachariah Newbery, and
Sergio Siccha.
maintained by:
Olexandr Konovalov (https://olexandr-konovalov.github.io/) and
The GAP Team (support@gap-system.org).
Homepage: https://gap-packages.github.io/JupyterKernel/
Report issues at https://github.com/gap-packages/JupyterKernel/issues
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
true
Hi!
I installed packages gap, gap-packages and jupyter-notebook from system repository and run
The issue is that GAP cells are not running. In logs there are errors like
jupyter kernelspec listAvailable kernels:
gap-4 /usr/share/jupyter/kernels/gap-4
python3 /usr/share/jupyter/kernels/python3
The python3 kernel is working well, but gap-4 not. The result of
jupyter notebook --debugis in the attached filejupyter-debug.log.
gap