This is repositoru contains Jupyter Client API binding and Ada Kernel written in Ada.
Download the latest release and unzip it
in some directory. Move kernel.json
into $HOME/.local/share/jupyter/kernels/ada/kernel.json
,
then edit it by replacing .bin
with the directory where ada_kernel
is.
You can also export JUPYTER_PATH
to help IDE find kernel.json
:
export JUPYTER_PATH=$HOME/.local/share/jupyter
Using alire
alr get --build jupyter_kernel
cd jupyter_kernel*
JUPYTER_PATH=$PWD jupyter-notebook --debug
Unpack source and run make
.
It depends on
- GNAT Ada compiler and
gprbuild
tool - Matreshka library
- ZeroMQ-Ada binding to zeromq
- Spawn - a process launch library
- Alire package manager (optional)
For now the Ada Kernel runs on Linux and Mac OS X (not tested) only, because it uses dlopen
to load shared
libraries.
Run make
to build the library and examples. Then run jupyter-notebook:
JUPYTER_PATH=$PWD jupyter-notebook --debug
Now you can open a notebook file, for example tests/Hello_Ada.ipynb
.
If you are going to use alr
make sure to build projects as shared libraries.
Feel free to dive in! Open an issue or submit PRs.
MIT © Maxim Reznik