Fast multi-dimensional array viewer
Project description
arrayview
A viewer for multi-dimensional arrays.
- CLI and Python
- Jupyter / VS Code
- Browser / native
- SSH / tunnels
CLI
uvx arrayview scan.nii.gz
uvx arrayview --window browser scan.npy
uvx arrayview # demo
Python
from arrayview import view
view(arr)
MATLAB
Add the matlab/ directory to your MATLAB path, then:
addpath('/path/to/arrayview/matlab')
A = rand(100, 200, 10);
arrayview(A)
Requires arrayview installed in MATLAB's Python environment:
pip install arrayview
Arrays are passed zero-copy via the buffer protocol (in-process Python). arrayview() enables this automatically — just call it before any other py.* call in your MATLAB session.
PyTorch / Deep Learning
from arrayview import view_batch, TrainingMonitor
# Browse a DataLoader batch
view_batch(train_loader)
view_batch(train_loader, overlay='label')
# Live training monitor — updates every N epochs
monitor = TrainingMonitor(every=5, samples=3)
for epoch in range(100):
for batch in val_loader:
pred = model(batch['image'])
monitor.step(input=batch['image'], target=batch['label'],
prediction=pred, epoch=epoch)
view_batch() accepts DataLoaders, Datasets, dicts, tuples, or raw tensors. TrainingMonitor opens a compare window and calls handle.update() automatically. PyTorch is not required at import time.
Formats
.npy .npz .nii .nii.gz .zarr .pt .h5 .tif .mat
Once open
Navigation: scroll slices · h/l cycle dims · j/k slices · =/- zoom · drag pan
Views: v 3-plane · z mosaic · q qMRI · n compare · = immersive
Display: c/C colormaps · d/D dynamic range · f FFT · m complex · p projections · L log
Tools: S segmentation · u ruler · s screenshot · ? help
nnInteractive Segmentation
S starts AI-assisted 3D segmentation (requires CUDA). Click/draw to segment, Enter to accept.
[nninteractive]
url = "http://gpu-server:1527" # skip auto-launch, use running server
Or: ARRAYVIEW_NNINTERACTIVE_URL=http://gpu-server:1527
Config
~/.arrayview/config.toml:
[viewer]
colormaps = ["gray", "viridis", "plasma"] # colormaps cycled by 'c'
[window]
default = "browser" # browser | native | vscode | inline
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file arrayview-0.11.0.tar.gz.
File metadata
- Download URL: arrayview-0.11.0.tar.gz
- Upload date:
- Size: 528.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
95d8609a24092dde3de79dbef2642fb4ac0d9d7c72009de2ee0f113c43bfd50a
|
|
| MD5 |
ab9ebaf6cf37a4c0ed731c50fe31d45b
|
|
| BLAKE2b-256 |
ab573628f68f5741f85354753781cd0e2128ab878e758076e4c08cd76bbcb156
|
Provenance
The following attestation bundles were made for arrayview-0.11.0.tar.gz:
Publisher:
python-publish.yml on oscarvanderheide/arrayview
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arrayview-0.11.0.tar.gz -
Subject digest:
95d8609a24092dde3de79dbef2642fb4ac0d9d7c72009de2ee0f113c43bfd50a - Sigstore transparency entry: 1254727911
- Sigstore integration time:
-
Permalink:
oscarvanderheide/arrayview@86ffd3eb8d179563da7e3d1d220a757e26d6beba -
Branch / Tag:
refs/tags/v0.11.0 - Owner: https://github.com/oscarvanderheide
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@86ffd3eb8d179563da7e3d1d220a757e26d6beba -
Trigger Event:
release
-
Statement type:
File details
Details for the file arrayview-0.11.0-py3-none-any.whl.
File metadata
- Download URL: arrayview-0.11.0-py3-none-any.whl
- Upload date:
- Size: 286.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
15bb4a5b299f862a0fa9adffc165682dddc7201a6ee68568794dbfc821fbff2b
|
|
| MD5 |
80979cf782c84bcc991ee6b8989fbb02
|
|
| BLAKE2b-256 |
505902e541e4f83e5a4f31f65ca00ef43c990b9f6e4568fe9cb10670e06ea50d
|
Provenance
The following attestation bundles were made for arrayview-0.11.0-py3-none-any.whl:
Publisher:
python-publish.yml on oscarvanderheide/arrayview
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
arrayview-0.11.0-py3-none-any.whl -
Subject digest:
15bb4a5b299f862a0fa9adffc165682dddc7201a6ee68568794dbfc821fbff2b - Sigstore transparency entry: 1254727976
- Sigstore integration time:
-
Permalink:
oscarvanderheide/arrayview@86ffd3eb8d179563da7e3d1d220a757e26d6beba -
Branch / Tag:
refs/tags/v0.11.0 - Owner: https://github.com/oscarvanderheide
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@86ffd3eb8d179563da7e3d1d220a757e26d6beba -
Trigger Event:
release
-
Statement type: