A simple IPython kernel for magma.
- Auto adds semicolons at the end of code blocks
- Uses magma's built-in tab completion
- Supports long lines
You must have Jupyter installed in your system. For example, it comes with
SageMath.
If are using SageMath, you can install magma_kernel
by doing:
sage -pip install git+https://github.com/edgarcosta/magma_kernel.git
if you are using Jupyter as a standalone, you can install magma_kernel
by doing
pip install git+https://github.com/edgarcosta/magma_kernel.git
Consider adding the flag --user
if you do not have permissions to install it system-wide.
Based on takluyver/bash_kernel and cgranade/magma_kernel. Reporting partial output and processing of help requests by returning an appropriate help query URL for Magma online documentation provided by nbruin/magma_kernel.
For details of how this works, see the Jupyter docs on wrapper kernels, and Pexpect's docs on the spawn class