How to install Glumpy OpenGL for Python

Most PCs made in the past decade are compatible with OpenGL, enabling extremely fast 2D and 3D animation–including from Python. You DON’T have to learn OpenGL at all to make interesting 3-D plots from Numpy arrays.

Glumpy prereqs:

apt install libglfw3-dev

pip install pyopengl packaging appdirs pyopengl triangle cython glfw

Windows trouble? See Glumpy install for Windows

pip install glumpy

Glumpy OpenGL Examples:

All Glumpy Example types

highly graphical Glumpy examples

git clone https://github.com/glumpy/glumpy

cd glumpy/examples

python fireworks.py

You must have OpenGL ≥ 2.1, which you can check by

glxinfo | grep "OpenGL version string"