How to install the PARI Jupyter kernel on your laptop

Using SageMath

If you have SageMath version 6.10, you just need to run

sage -i pari_jupyter

Manual installation

We assume that you have Python 2.7, other versions may or may not work.

  1. Install Jupyter (this is really a meta-package, containing many individual packages).
    • Either install it using your distribution,
    • or install it using pip install --user jupyter.
  2. Install Cython from git master:
    • git clone https://github.com/cython/cython.git
    • cd cython
    • ./setup.py install --user
  3. Install PARI/GP from git master:
    • git clone http://pari.math.u-bordeaux.fr/git/pari.git
    • cd pari
    • ./Configure --prefix=$HOME/.local
    • make install
  4. Install pari_jupyter from git master:
    • git clone https://github.com/jdemeyer/pari_jupyter.git
    • cd pari_jupyter
    • CFLAGS="-I$HOME/.local/include -L$HOME/.local/lib" ./setup.py install --user
  5. Set
    • PATH=$HOME/.local:$PATH
    • LD_LIBRARY_PATH=$HOME/.local/lib:
  6. Launch jupyter-notebook