Interactyive python viewers
Project description
PyViewer
Pyviewer is a python library for easily visualizing NumPy arrays and PyTorch tensors.
Components
single_image_viewer.py
A viewer for showing single fullscreen images or line plots without other UI elements. Runs in a separate process and remains interactive even if the main process is suspended (e.g. in a debugger). Great for interactively looking at intermediate values of complex ML/CG/CV pipelines.
Usage:
from pyviewer import single_image_viewer as siv
siv.draw(img_chw=np.random.randn(3,64,64))
siv.plot(np.sin(2*np.pi*np.linspace(0, 1, 10_000)))
toolbar_viewer.py
A viewer that shows ImGui UI elemets on the left, and a large image on the right. Runs in the main process, but supports visualizing torch tensors directly from GPU memory (unlike single_image_viewer).
Other features
- Bundles a custom build of PyImGui with plotting support (via ImPlot)
- Dynamically rescalable user interface
- Window resizing to integer multiple of content resolution
Installation
pip install pyviewer
Usage
See examples/demo.py
for a usage example.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file pyviewer-1.5.1.tar.gz
.
File metadata
- Download URL: pyviewer-1.5.1.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20b3cb2f5636400b6c31eccb9c2936857d9fed366b0f4020adca72582596ca33 |
|
MD5 | e19ad1deea4302f1f71183a1aafbaf90 |
|
BLAKE2b-256 | b9d41d6c6b248371e09cc3d656359289b823cbfbb52450fa8c7a016a8c80d2bc |
File details
Details for the file pyviewer-1.5.1-py3-none-any.whl
.
File metadata
- Download URL: pyviewer-1.5.1-py3-none-any.whl
- Upload date:
- Size: 1.7 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 879f3bb8b8fbdd1556d5d6b826d7e54415127e7e12c0c5bda40d83311660304b |
|
MD5 | 0368735a1134a13a98fb8553a2ef2b3a |
|
BLAKE2b-256 | 6fb085c39989ff75ddaeacb8c7a61af6b24d8a957a521e9da3228884be5b0f66 |