Skip to content

A magma kernel for Jupyter, based on bash_kernel

License

Notifications You must be signed in to change notification settings

edgarcosta/magma_kernel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

magma_kernel

A simple IPython kernel for magma.

Features:

  • Auto adds semicolons at the end of code blocks
  • Uses magma's built-in tab completion
  • Supports long lines

Installation

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.

Credit & Others

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

About

A magma kernel for Jupyter, based on bash_kernel

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages