This repository contains scripts that launch a Neuroglancer viewer to visualize 3D data stored in a Zarr file, making it accessible via a web browser.
Using Neuroglancer with Zarr files is particularly useful for viewing very large datasets, because the lazy loading scheme prevents the entire array from being loaded into memory.
open-zarr-file-remote— run the viewer on a remote machine and view it locally via an SSH tunnel.open-zarr-file_local— run the viewer on the same machine you'll view it on (no SSH tunnel needed).
Remote use: open-zarr-file-remote
In this example, I am using port 9090:
- Create the SSH tunnel
ssh -L 9090:localhost:9090 -Y my-remote-machine
- Run the script (the port must match the SSH tunnel port)
open-zarr-file-remote 9090 /path/to/file.zarr
- This script will print the URL where you can access the neuroglancer viewer on your local machine. It will look something like this:
Open in browser: http://localhost:9090/v/14a31d6d2d4d11d95fa35f51daadc97da9100571/. Open the link in your browser on your local machine.
Local use: open-zarr-file-local
When the zarr file lives on the same machine you'll view it on, no SSH tunnel or port is needed — neuroglancer picks a free port itself:
open-zarr-file-local /path/to/file.zarr
The script will print a URL like Open in browser: http://127.0.0.1:46789/v/14a31d6d2d4d11d95fa35f51daadc97da9100571/. Open it in your browser.
Optional resolution argument
Both scripts accept an optional voxel resolution (in nanometers) as the last argument. For example:
open-zarr-file-remote 9090 /path/to/file.zarr 10
open-zarr-file-local /path/to/file.zarr 10
Input file types
This package expects data in the zarr format. Zarr version 3 and zarr version 2 are supported. If using zarr version 2, the data must be saved with name 'data'.
Example of how to save zarr v2 files:
import zarr
root = zarr.open_group("/path/to/file.zarr", mode='w', zarr_format=2)
root.create_array('data', data=array)
neuroglancer-volume-viewer works with zarr files saved using methods from the pyxalign package.
Metadata
Release files for neuroglancer-volume-viewer 0.1.2
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 |
|---|---|---|---|---|
| neuroglancer_volume_viewer-0.1.2.tar.gz | 6.0 kB | Without provenance | Details for neuroglancer_volume_viewer-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| neuroglancer_volume_viewer-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for neuroglancer_volume_viewer-0.1.2-py3-none-any.whl |
Total release size: 13.0 kB
Release files / neuroglancer_volume_viewer-0.1.2.tar.gz
| Download URL | neuroglancer_volume_viewer-0.1.2.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0b0c090d5076b5f98a6f6bb8dcaba5522e0f624de02b18c3ccb4e067978f3d4e
|
|
BLAKE2b-256 checksum How to use checksums |
866d8de1e7909f87a87d59670f9e8cedc0f157bc69c9d4f39e952dfc340c1e55
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Release files / neuroglancer_volume_viewer-0.1.2-py3-none-any.whl
| Download URL | neuroglancer_volume_viewer-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
832ee0d6cd5283b876c058f9bdc079a695bbda2f3678af9703a0786b69029f47
|
|
BLAKE2b-256 checksum How to use checksums |
e5cfbc347d87a1d16ad2c8a8952d5c1c83a35445bd0bcdc076e7c4366d0e8c1f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.13
|
Security for neuroglancer-volume-viewer 0.1.2
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.