Skip to main content

simple nd image viewer

Project description

ndv

License PyPI Python Version CI codecov

Simple, fast-loading, asynchronous, n-dimensional viewer for Qt, with minimal dependencies.

from qtpy import QtWidgets
from ndv import NDViewer
from skimage import data  # just for example data here

qapp = QtWidgets.QApplication([])
v = NDViewer(data.cells3d())
v.show()
qapp.exec()

Montage

NDViewer

  • supports arbitrary number of dimensions, with 2D/3D view canvas, and sliders for all non-visible dims
  • sliders support integer as well as slice (range)-based slicing
  • colormaps provided by cmap
  • supports vispy and pygfx backends
  • supports any numpy-like duck arrays, with special support for features in:
    • xarray.DataArray
    • dask.array.Array
    • tensorstore.TensorStore
    • zarr
    • dask

Installation

The only required dependencies are numpy and superqt[cmap,iconify]. You will also need a Qt backend (PyQt or PySide) and one of either vispy or pygfx:

pip install ndv[pyqt,vispy]

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

ndv-0.0.1.tar.gz (27.0 kB view details)

Uploaded Source

Built Distribution

ndv-0.0.1-py3-none-any.whl (27.1 kB view details)

Uploaded Python 3

File details

Details for the file ndv-0.0.1.tar.gz.

File metadata

  • Download URL: ndv-0.0.1.tar.gz
  • Upload date:
  • Size: 27.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for ndv-0.0.1.tar.gz
Algorithm Hash digest
SHA256 cf8b5802aca61bc00e3bc5e92abaa6572e2a95fd436167932dc9c66015a61476
MD5 814fdcf252d9f7eab82dcf325cb73c8f
BLAKE2b-256 6c74e6f90a79724b97cc1795b7eeca677ae8ef1935d1a78b76674df1724eda39

See more details on using hashes here.

File details

Details for the file ndv-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: ndv-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 27.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.4

File hashes

Hashes for ndv-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d0f9aec30e62dc52a60881ccc6879e99daba4250e5a34e6e1d9899bf86c12262
MD5 a44e2b2213ee82cc4044eaa80a5e1f55
BLAKE2b-256 f2eeaca039168572b2f650b909e0a4044ea341280a06c40fbbff5de201ecefa0

See more details on using hashes here.

Supported by

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