I installed GAP on Windows using the installer at https://www.gap-system.org/install/windows/. This creates a Unix-like file system under Program Files\Gap-4.15.1\runtime, with subdirectories bin, usr etc. , including opt\gap-4.15.1\pkg. I checked that GAP works correctly in a terminal. However, I would prefer to use it in a Jupyter notebook in VS Code, so I tried at some length to get the Jupyter kernel to work, but did not succeed. That is a shame because I think it could probably be done without too many changes by someone more expert than me. The first issue is that pip puts jupyter-kernel-gap in the Python Scripts directory, but that is a bash script which cannot easily be run in Windows. I made an equivalent .bat file and changed kernel.json to point to it. After some further tweaks to kernel.json I got to the stage where the script Program Files\Gap-4.15.1\gap.bat was being run, but somehow the relative path .\cygstart in that file was not being resolved correctly, and my attempts to work around that failed with errors that I was not able to interpret. One could perhaps also modify kernel.json in a different way so that it runs the original jupyter-kernel-gap using the version of bash that is packaged with GAP, but I did not try that yet.
I installed GAP on Windows using the installer at https://www.gap-system.org/install/windows/. This creates a Unix-like file system under
Program Files\Gap-4.15.1\runtime, with subdirectoriesbin,usretc. , includingopt\gap-4.15.1\pkg. I checked that GAP works correctly in a terminal. However, I would prefer to use it in a Jupyter notebook in VS Code, so I tried at some length to get the Jupyter kernel to work, but did not succeed. That is a shame because I think it could probably be done without too many changes by someone more expert than me. The first issue is thatpipputsjupyter-kernel-gapin the Python Scripts directory, but that is abashscript which cannot easily be run in Windows. I made an equivalent.batfile and changedkernel.jsonto point to it. After some further tweaks tokernel.jsonI got to the stage where the scriptProgram Files\Gap-4.15.1\gap.batwas being run, but somehow the relative path.\cygstartin that file was not being resolved correctly, and my attempts to work around that failed with errors that I was not able to interpret. One could perhaps also modifykernel.jsonin a different way so that it runs the originaljupyter-kernel-gapusing the version ofbashthat is packaged with GAP, but I did not try that yet.