Glumpy – Interface between NumPy and OpenGL – Python Library

Glumpy is an open source Python library for scientific 2D/3D visualization that is both fast, scalable and beautiful. Glumpy offers a natural interface between NumPy and OpenGL.

This library generates high fidelity graphics with fireworks, galaxies, Voronoi diagrams, high frequency signals, surface elevation, Mandelbrot sets, Klein bottles, quiver plots, reaction diffusions, colormaps, smoke simulations and many more effects.

Glumpy uses external tools that are directly embedded within its repository.


  • 3 main packages:
    • Application layer – opens a window and handles user events such as mouse and keyboard input.
    • OpenGL layer – handles shader programs and syncs CPU/GPU data through the NumPy interface.
    • Graphics layer – provides higher-level common objects such as text, collections, and widgets.
  • Based on a tight and seamless integration with NumPy arrays.
  • glumpy.gloo module provides an intuitive interface to modern OpenGL through buffers, textures, and programs.
  • Hardware accelerated.
  • Perform general General-Purpose Computation on Graphics Hardware (GPGPU) without using Cuda or OpenGL.
  • More low-level than VisPy. The glumpy roadmap is to have a stable mid-level interface for OpenGL while VisPy targets high-level.
  • Good range of examples are available which illustrate Glumpy’s capabilities.
  • Antigrain rendering – high fidelity graphics.


  • NumPy – the fundamental package for scientific computing with Python.
  • PyOpenGL – cross platform Python binding to OpenGL and related APIs.
  • cython – optimising static compiler for both the Python programming language and the extended Cython programming language.
  • triangle: a Python wrapper around Jonathan Richard Shewchuk’s two-dimensional quality mesh generator and delaunay triangulator library.
  • A backend toolkit such as GLFW (the default), Qt, Pyglet, SDL2.0, GTK3, Wx3, and others.

VisPy is the sister project of glumpy. It’s a high-performance interactive 2D/3D data visualization library. VisPy leverages the computational power of modern Graphics Processing Units (GPUs) through the OpenGL library to display very large datasets.

Support: Documentation, GitHub Code Repository, Gitter, Mailing List
Developer: Nicolas P. Rougier
License: BSD License


Glumpy is written in Python. Learn Python with our recommended free books and free tutorials.

Return to Python Visualization Packages Home Page

Make a Donation
Click the button to make a donation via flattr. Donations help us to maintain and improve the site. You can also donate via PayPal.

Read our complete collection of recommended free and open source software. The collection covers all categories of software.

The software collection forms part of our series of informative articles for Linux enthusiasts. There's tons of in-depth reviews, alternatives to Google, fun things to try, hardware, free programming books and tutorials, and much more.
Share this article

Share your Thoughts

This site uses Akismet to reduce spam. Learn how your comment data is processed.