Skip to main content

Pythonic bindings for imgui/implot

Project description

imviz

Pythonic bindings for the great imgui and implot libraries.

What?

The goal of this project is to create bindings, which map the immediate mode gui paradigm in a pythonic way, so that writing GUIs in python (especially visualization heavy ones, meaning plots and stuff) becomes easy.

Why?

While writing visualization tools for research, I (personally) found the different python bindings of imgui/implot somewhat unsatisfactory, because:

  • pyimgui maps the api but does not include implot
  • imgui_datascience seems abandoned and does not include implot
  • dearpygui includes implot, but does not replicate the immediate mode paradigm in python

Who?

This is for the people who are too impatient to wait for matplotlib to render 10e5 data points. And for the people who are just completely unwilling (me) or utterly incapable (also me) to deal with application state management in PyQt (otherwise pyqtgraph would be fine).

How?

pybind11.

Installation

OpenGL libraries, GLFW, and GLEW are mandatory dependencies and are expected to be installed on the system.

On Ubuntu 22.04 OpenGL libraries are already installed and GLFW, GLEW can be installed with:

sudo apt-get install -y libglfw3-dev
sudo apt-get install -y libglew-dev

Via PyPI

For convenience a source distribution is available on PyPI. Install via pip:

python3 -m pip install imviz

From Source

The setup.py script configures and builds the project via cmake, which in turn downloads further required dependencies. An internet connection is therefore necessary at build time.

The project can then be installed by executing the following command in the project root directory:

python3 -m pip install .

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

imviz-0.2.10.tar.gz (577.7 kB view details)

Uploaded Source

File details

Details for the file imviz-0.2.10.tar.gz.

File metadata

  • Download URL: imviz-0.2.10.tar.gz
  • Upload date:
  • Size: 577.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for imviz-0.2.10.tar.gz
Algorithm Hash digest
SHA256 a80c136ba957c582af74b65abbcea5e74e20edbc6311a58faea7aa466eeba08a
MD5 44ef8ffaff82cee2930e713b6d67353c
BLAKE2b-256 e2f98e3db6fd796b77144b9d7c6a4edf6dcd82bda324840c3bbee5e2df00f880

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