Skip to content

reuster986/chpl-magic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

chpl-magic

IPython cell magic for chapel code.

Quick Start

Install with pip:

pip install git+https://github.com/reuster986/chpl-magic

In Jupyter:

%load_ext chpl_magic
%%chpl
export proc addem(x:int, y:int):int {
    return x + y;
}
addem(2, 3) # prints 5

Dependencies

  • Chapel >= 1.18 compiled in "shared" mode (with CHPL_LIBMODE=shared)
  • python3
  • Cython
  • numpy

Uses Chapel's compiler utility for exporting libraries to Python.

About

IPython cell magic for chapel language

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages