xpqz / ngnk_kernel

An ngn/k kernel for jupyter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Jupyter kernel for ngn/k

NOTE: This is alpha quality at best.

This is a jupyter kernel for ngn/k, derived from the bash_kernel.

To use the kernel with docker, see the file README-Docker.md

Install

Ensure that you have a working build of ngn/k. This kernel expects that you have built the k-libc version. Set the environment variable NGNKDIR

export NGNKDIR="/your/path/to/k/dir"

so that the executable can be reached as /your/path/to/k/dir/k-libc.

Now run

`python install.py --sys-prefix`

and start the notebook server

jupyter notebook

For details of how this works, see the Jupyter docs on wrapper kernels, and pexpect's docs on the replwrap module.

About

An ngn/k kernel for jupyter

License:Other


Languages

Language:Python 86.9%Language:Dockerfile 13.1%