IPython cell magic for chapel code.
Install with pip:
pip install git+https://github.com/reuster986/chpl-magicIn Jupyter:
%load_ext chpl_magic%%chpl
export proc addem(x:int, y:int):int {
return x + y;
}addem(2, 3) # prints 5- Chapel >= 1.18 compiled in "shared" mode (with CHPL_LIBMODE=shared)
- python3
- Cython
- numpy
Uses Chapel's compiler utility for exporting libraries to Python.