Pyvista-Imgui
pyvista-imgui is a small helper module for the pyvista-package to integrate it with the imgui-library.
It integrates a fully interactive pyvista-Plotter as an imgui-widget, by utilizing VTK's vtkGenericOpenGLRenderWindow to first render the output into an OpenGL texture and displaying it as a regular imgui-image widget.
It currently utilizes either the bindings provided by imgui-bundle, or by pyimgui.
This package is considered experimental at this moment, so expect issues.
Installation5
To install this package using pip use:
pip install pyvista-imgui[imgui-bundle]
for the imgui-bundle bindings or:
pip install pyvista-imgui[imgui]
for the pyimgui bindings.
Alternatively the installation from source is also possible with:
git clone https://github.com/mortacious/pyvista-imgui
cd pyvista-imgui
pip install [-e] .[imgui-bundle / imgui]
Usage
The package includes the class ImguiPlotter, which can be used as a drop-in alternative to the regular pyvista-plotters:
import pyvista as pv
from pyvista_imgui import ImguiPlotter
sphere = pv.Sphere()
plotter = ImguiPlotter()
plotter.add_axes()
plotter.add_mesh(sphere)
plotter.show()
Alternatively, an instance of ImguiPlotter can be integrated into an existing imgui-UI as a widget:
imgui.begin("Imgui Plotter")
# render the plotter's contents here
plotter.render()
imgui.end()
Metadata
Release files for pyvista-imgui 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyvista-imgui-0.5.0.tar.gz | 22.6 kB | Without provenance | Details for pyvista-imgui-0.5.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyvista_imgui-0.5.0-py3-none-any.whl | Python 3 | none | any | Details for pyvista_imgui-0.5.0-py3-none-any.whl |
Total release size: 46.1 kB
Release files / pyvista-imgui-0.5.0.tar.gz
| Download URL | pyvista-imgui-0.5.0.tar.gz |
|---|---|
| Size | 22.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b83554a245dc8d655cd22c89cdb39e34b03a43938477335e4184886dd823ce8
|
|
BLAKE2b-256 checksum How to use checksums |
108119c00bd3af1214e630a79df664d34d8499d7c845220f8a97b4b1c975a702
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.18
|
Release files / pyvista_imgui-0.5.0-py3-none-any.whl
| Download URL | pyvista_imgui-0.5.0-py3-none-any.whl |
|---|---|
| Size | 23.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cd6f8a6f6dbc2fc4f714d9909d5be6ca3c3616df4f9c98cedcc8fb683631b5b6
|
|
BLAKE2b-256 checksum How to use checksums |
a843a43f66076f63675bdb877af5eda626bd82ac45ab5c0a29c417bdc6e45ba0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.8.18
|
Security for pyvista-imgui 0.5.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.