Skip to main content

ntnda-qt-viewer

A lightweight Qt-based live image viewer for EPICS NTNDArray PVs, built on pyqtgraph and p4p.

ntnda-qt-viewer with the JET colormap and profiles on the right and top

Features

  • Live streaming from any NTNDArray PVAccess channel
  • Decoding of compressed NTNDArray payloads using Python codec libraries
  • Streaming of raw waveform PVs with optional reshaping and color handling, both over PVAccess and Channel Access
  • Supports 8–64 bit signed/unsigned integers and 32/64-bit floats
  • Draggable crosshair lines with linked horizontal and vertical pixel profile plots
  • Option to preserve aspect ratio when resizing the window (square pixels)
  • Scroll-wheel zoom, right-drag zoom-to-rectangle, double-click to reset
  • Bottom ROI controls bar with per-ROI Set button and Enable checkbox
  • Set mode initializes ROI from a right-drag rectangle and then auto-exits
  • Live pixel readout (x, y, value) under the cursor
  • Connection status indicator and framerate display

Installation

pip install ntnda-qt-viewer

A Qt backend is also required. Install one via the gui dependency group or separately:

pip install PySide6

OR

pip install ntnda-qt-viewer[pyside6]

To support compressed NTNDArray codecs (zlib, blosc, lz4/lz4hdf5, bslz4, jpeg) install optional codec dependencies:

pip install "ntnda-qt-viewer[codecs]"

Usage

See the documentation for an annotated walkthrough, embedding guide and API reference.

Launch from the command line with a top-level prefix:

ntnda-qt-viewer DEV:XSPD1:
ntnda-qt-viewer DEV:XSPD1: --pva-suffix Pva1:
ntnda-qt-viewer DEV:XSPD1: --num-rois 4 --roi-suffix-pattern "ROI{}:"

Image PV is formed as <prefix><pva-suffix>Image.

ROI PVs are written as <prefix><roi-suffix>{MinX,MinY,SizeX,SizeY}.

Read a plain waveform PV (e.g. an NDStdArrays ArrayData PV) over Channel Access instead of PVAccess:

ntnda-qt-viewer DEV:XSPD1:image1:ArrayData --ca --raw-waveform --image-shape 1024 1024

Try the viewer without an IOC using a simulated pattern (gradient, noise, spot, checkerboard or rings):

ntnda-qt-viewer --sim gradient
ntnda-qt-viewer --sim rings --image-shape 1024 1024 --color

Or embed the widget in your own Qt application:

from ntnda_qt_viewer import NTNDAViewerWidget

widget = NTNDAViewerWidget(
    prefix="DEV:XSPD1:",
    pva_suffix="Pva1:",
    num_rois=4,
    roi_suffix_pattern="ROI{}:",
)
widget.show()

Development

This project uses uv for environment management:

uv sync
uv run --frozen pytest
uv run --frozen ruff check
uv run --frozen pyright src tests

License

BSD 3-Clause. See LICENSE for details.

Metadata

Release files for ntnda-qt-viewer 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ntnda-qt-viewer 0.0.3
File Size Uploaded Provenance Actions
ntnda_qt_viewer-0.0.3.tar.gz 800.1 kB With provenance Details for ntnda_qt_viewer-0.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ntnda-qt-viewer 0.0.3
File Interpreter ABI Platform Actions
ntnda_qt_viewer-0.0.3-py3-none-any.whl Python 3 none any Details for ntnda_qt_viewer-0.0.3-py3-none-any.whl

Total release size: 834.0 kB

Release files / ntnda_qt_viewer-0.0.3.tar.gz

Download URL ntnda_qt_viewer-0.0.3.tar.gz
Size 800.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9122b64e8424ef602c8aa6c0a19abeaadcf85721b41491022c2d59700f5be901
BLAKE2b-256 checksum
How to use checksums
7dba73331fe7772a319d87b183279a876229ecac760c084cb66b510bd839c5cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / ntnda_qt_viewer-0.0.3-py3-none-any.whl

Download URL ntnda_qt_viewer-0.0.3-py3-none-any.whl
Size 34.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8eead861428f7298aa20388f3778e24064934c6d08e3c0527f3e7748b59e5663
BLAKE2b-256 checksum
How to use checksums
4d89e22b9fdcf7a98d37b21af5242bd64ed34e84dab737cb38fe4d8a25c78ffe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for ntnda-qt-viewer 0.0.3

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ntnda_qt_viewer-0.0.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page