Install the dependencies listed below and run
pip install pari-jupyter
On Jupyter notebook versions older than 5.3, syntax highlighting must be explicitly enabled by running
jupyter nbextension enable --sys-prefix gp-mode/main
Replace --sys-prefix
by --user
for a user installation.