Skip to main content

Next-gen fast plotting library running on WGPU using the Pygfx rendering engine

Project description

logo


CI PyPI version Deploy docs DOI

Installation | GPU Drivers | Documentation | Examples | Contributing

Next-gen plotting library built using the pygfx rendering engine that utilizes Vulkan, DX12, or Metal via WGPU, so it is very fast! fastplotlib is an expressive plotting library that enables rapid prototyping for large scale exploratory scientific visualization.

Note: fastplotlib is currently in the late alpha stage, but you're welcome to use it or contribute! See our Roadmap. Also, see this for a discussion on API stability: https://github.com/fastplotlib/fastplotlib/issues/121

What are some things I can do with fastplotlib?

  • GPU-accelerated visualization

  • interactive visualization via an intuitive and expressive API

  • rapid prototyping and algorithm design

  • easy exploration and fast rendering of large-scale data

  • design, develop, evaluate, and ship machine learning models

  • create visualizations for real-time acquisition systems for scientific instruments (cameras, etc.)

Supported frameworks

fastplotlib can run on anything that pygfx can also run, this includes:

:heavy_check_mark: Jupyter lab, using jupyter_rfb
:heavy_check_mark: PyQt and PySide
:heavy_check_mark: glfw
:heavy_check_mark: wxPython

Write your code once and run it anywhere. Whether you are using Qt, glfw, jupyter lab, or doing offscreen rendering, fastplotlib works across all major platforms (Linux, Windows, Mac OS X) :smile: See the FAQ for more details on where and how you can use fastplotlib.

Documentation

http://www.fastplotlib.org/ver/dev

Questions, issues, ideas? You are welcome to post an issue or post on the discussion forum! :smiley:

Installation

To install use pip:

# with imgui and jupyterlab
pip install -U "fastplotlib[notebook,imgui]"

# minimal install, install glfw, pyqt6 or pyside6 separately
pip install -U fastplotlib

# with imgui
pip install -U "fastplotlib[imgui]"

# to use in jupyterlab without imgui
pip install -U "fastplotlib[notebook]"

We strongly recommend installing simplejpeg for use in notebooks, you must first install libjpeg-turbo

Once you have libjpeg-turbo:

pip install simplejpeg

Note: fastplotlib and pygfx are fast evolving projects, the version available through pip might be outdated, you will need to follow the "For developers" instructions below if you want the latest features. You can find the release history here: https://github.com/fastplotlib/fastplotlib/releases

For developers

Make sure you have git-lfs installed.

git clone https://github.com/fastplotlib/fastplotlib.git
cd fastplotlib

# install all extras in place
pip install -e ".[notebook,docs,tests,imgui]"

# install latest pygfx
pip install git+https://github.com/pygfx/pygfx.git@main

See Contributing for more details on development

Examples

Examples gallery: http://fastplotlib.org/ver/dev/_gallery/index.html

User guide: http://fastplotlib.org/ver/dev/user_guide/guide.html

fastplotlib code is identical across notebook (jupyterlab), and desktop use with Qt/PySide or glfw.

Notebooks

The quickstart.ipynb tutorial notebook is a great way to get familiar with the API: https://github.com/fastplotlib/fastplotlib/tree/main/examples/notebooks/quickstart.ipynb

GPU drivers and requirements

Generally if your GPU is from 2017 or later it should be fine. Modern integrated graphics are usually fine for many use cases. The exact requirements will depend on how complex your visualization is and how many objects you need to render.

More detailed information on GPUs and drivers is here: http://fastplotlib.org/ver/dev/user_guide/gpu.html

For more detailed information, such as use on cloud computing infrastructure, see the WGPU docs: https://wgpu-py.readthedocs.io/en/stable/start.html#cloud-compute

Contributing :heart:

We welcome contributions! See the contributing guide: https://github.com/fastplotlib/fastplotlib/blob/main/CONTRIBUTING.md

You can also take a look at our Roadmap for 2025 and Issues for ideas on how to contribute!

Developers :brain:

A special thanks to all of the pygfx developers and the amazing work they have done.

Sponsors

Fastplotlib is free and open source. We would like to thank the following institutions for helping to support fastplotlib over the past few years.

  • UNC Chapel Hill, Giovannucci Lab & Hantman Lab
  • Flatiron Institute CCN, Chklovskii Lab
  • Duke University, Pearson Lab

We are always open to new sponsors that can help further develop and improve the library.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mbo_fastplotlib-0.7.0.tar.gz (169.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mbo_fastplotlib-0.7.0-py3-none-any.whl (204.1 kB view details)

Uploaded Python 3

File details

Details for the file mbo_fastplotlib-0.7.0.tar.gz.

File metadata

  • Download URL: mbo_fastplotlib-0.7.0.tar.gz
  • Upload date:
  • Size: 169.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.2

File hashes

Hashes for mbo_fastplotlib-0.7.0.tar.gz
Algorithm Hash digest
SHA256 a94c86395ecbe6f8f439a18f986cb8bbe27aa599bb18d099ffff884d7f40bb28
MD5 fe9048edd044ba9db20ab0509560253c
BLAKE2b-256 0aec9c17846c5cb6010813b67c7480599bdb7dc803e10960773cc8bd5e4ae518

See more details on using hashes here.

File details

Details for the file mbo_fastplotlib-0.7.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mbo_fastplotlib-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b5705e5a59a141239071c67444989cb15829072b2723c783405056e8a470227
MD5 fb8c0bb0119a2dc76b729a75f3c81d12
BLAKE2b-256 e2ddb9e0293cbfa533e92bed584d69d277786711f11a6609705ba758537a1bc9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page