Pygfx
A powerful and reliable render engine for Python

Pygfx (py-graphics) is built on WebGPU, enabling superior performance and reliability compared to OpenGL-based solutions. It is designed for simplicity and versatility: with its modular architecture, you can effortlessly assemble graphical scenes for diverse applications, from scientific visualization to video game rendering.

Source Gallery Documentation Support & Sponsoring

News

Getting started

Pygfx runs almost anywhere, you don't need a fancy GPU.

Projects

The following projects fall under the pygfx.org umbrella:

Docs Source

Pygfx

A powerful and reliable render engine for Python. The main project.
Docs Source

wgpu-py

WebGPU for Python. Pygfx uses this to control your GPU.
Docs Source

RenderCanvas

One canvas API, multiple backends. Enables Pygfx to render into an Qt/wx application, Jupyter notebook, and more.
Docs Source

pylinalg

Linear algebra utilities for Python. Used in Pygfx for its transform system.

We also help maintain the following projects:

Source

wgpu-native

Provides a C-API for WebGPU by implementing webgpu.h. Wrapped by wgpu-py.
Source

jupyter_rfb

A remote frame-buffer for Jupyter. Enables Jupyter support in RenderCanvas.

Mission

We are dedicated to bring powerful and reliable visualization to the Python world. We believe that WebGPU is the future for graphics and bring it to Python with the wgpu-py library. On top of that, we build Pygfx: a modern, versatile, and Pythonic rendering engine.

Pygfx provides a basis on top of which a multitude of visualizations become possible. From applications to libraries, from games to plotting. Pygfx is expressive in what you can do with it, but does not try hard to reduce the number of code-lines. We deliberately leave higher-level (domain specific) API's to downstream libraries.

Ecosystem

The following notable projects build on top of Pygfx or wgpu-py:

Docs Source

Fastplotlib

Next-gen plotting library built on Pygfx.
Source

Shadertoy

Shadertoy implementation based on wgpu-py

Current sponsors

Pygfx is open source and free to use. To develop these projects we rely on funding from our sponsors. The more groups contribute, the more time we can spend on moving these projects forwards. Learn more ...

Ramona optics


https://ramonaoptics.com

The Flatiron institute


https://simonsfoundation.org/flatiron/

Core team


@almarklein

@korijn