xarray-graph
PyQt UIs for Xarray DataTree including tree view and DataArray slice graphing and processing.
:construction: YouTube videos for tree and graph apps
Contents
- Install
- Apps
- XarrayDataTreeViewer: Tree UI for an Xarray DataTree.
- XarrayGraph: Graph/Iterate/Fit/Analyze (x,y) slices of DataArrays in an Xarray DataTree.
- Using Xarray DataTree model/view components in your own app
- Support
Install
Requires a PyQt package. Should work with PySide6 (the official Python Qt binding), PyQt6, or PyQt5 via the QtPy abstraction layer. Note: PySide6>=6.2.2 for Apple silicon support, and PySide6!=6.9.1 due to a bug that is incompatible with pyqtgraph.
Install with uv (recommended):
- Install the python package manager uv.
- Download the xarray-graph GitHub repository.
- In the downloaded repo directory, run the following commands (e.g., in a Terminal or shell):
uv sync
uv pip install "PySide6>=6.2.2,!=6.9.1"
:warning: Although the xarray-graph package is also available via PyPI, this package is currently NOT up-to-date and should NOT be used at the moment. For now, please use uv to install from the latest repo as instructed above.
XarrayDataTreeViewer
Tree UI for an Xarray DataTree.
:rocket: To launch the application, run the following command (e.g., in a Terminal or shell) in the downloaded repo directory:
uv run xarray-tree
:bangbang: Note: The first time you run the app it may take 30-60 seconds to start due to loading of graphics libraries, so be patient. Subsequent runs should start in only a few seconds.
:construction: YouTube video
XarrayGraph
Graph/Iterate/Fit/Analyze (x,y) slices of DataArrays in an Xarray DataTree.
:rocket: To launch the application, run the following command (e.g., in a Terminal or shell) in the downloaded repo directory:
uv run xarray-graph
:bangbang: Note: The first time you run the app it may take 30-60 seconds to start due to loading of graphics libraries, so be patient. Subsequent runs should start in only a few seconds.
:construction: YouTube video
Using Xarray DataTree model/view components in your own app
import xarray as xr
from xarray_graph.tree import XarrayDataTreeModel, XarrayDataTreeView
dt = xr.DataTree(...)
model = XarrayDataTreeModel()
model.setDatatree(dt)
view = XarrayDataTreeView()
view.setModel(model)
# place view widget in your app as desired
Support
This is all done in my free time. If you find it useful, why not buy me a cup of coffee? Cheers!
Metadata
Release files for xarray-graph 2026.7.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| xarray_graph-2026.7.1.tar.gz | 216.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xarray_graph-2026.7.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 480.4 kB
Release files / xarray_graph-2026.7.1.tar.gz
| Download URL | xarray_graph-2026.7.1.tar.gz |
|---|---|
| Size | 216.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9e9794abec1bf1e42cb22801725eb8a82549ccae57cba5048eb15669af005aae
|
|
BLAKE2b-256 checksum How to use checksums |
19dd69b5b8f3474fd70e4d8d4179a77357892f27259830f276948c64a43e9d0d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.8
|
Release files / xarray_graph-2026.7.1-py3-none-any.whl
| Download URL | xarray_graph-2026.7.1-py3-none-any.whl |
|---|---|
| Size | 263.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f7892bf1f4edb9dcc318675f6df4b438aa142a9e34bff9440a2d9a8c14514a3a
|
|
BLAKE2b-256 checksum How to use checksums |
f3f0b9a28c47af3cb1ab8afead4018c0f30a96280cfdd9bdc3372d3d877ef8f0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.9.8
|