A simple IPython kernel for gp.
It simply writes each cell as temporary file and then reads it with \r
.
You must have Jupyter installed in your system. For example, it comes with
SageMath.
If are using SageMath, you can install gp_kernel
by doing:
sage -pip install git+https://github.com/edgarcosta/gp_kernel.git
if you are using Jupyter as a standalone, you can install gp_kernel
by doing
pip install git+https://github.com/edgarcosta/gp_kernel.git
Consider adding the flag --user
if you do not have permissions to install it system-wide.
Mutatis mutandis edgarcosta/magma_kernel.
Which is based on takluyver/bash_kernel and cgranade/gp_kernel. Reporting partial output and processing of help requests by returning an appropriate help query URL provided by nbruin/gp_kernel.
For details of how this works, see the Jupyter docs on wrapper kernels, and Pexpect's docs on the spawn class