Compiler magics for use with Jupyter notebooks.
- Enter the directory you downloaded this file in
- run python setup.py install
- Append the contents of hpcmagic/custom.js to ~/.jupyter/custom/custom.js
- Copy hpcmagic/hpcmagic.ini to ~/.local/hpcmagic/hpcmagic.ini
- Append the contents of hpcmagic/ipython_config.py to ~/.ipython/profile_default/ipython_config.py
Edit the contents of ~/.local/hpcmagic/hpcmagic.ini to suit your Linux/Unix development environment. Or define environment variables with the same name as the defaults in ~/.local/hpcmagic/hpcmagic.ini.
There are three cell magics available
-
%%CPP
-
%%C
-
%%FORTRAN