Install & Compatibility
Where this runs
tested against v2026.6.0 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
build_error
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 40.2s · import 42.076s · 1433.6MB
1454MB installed
● package 1454MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
UxDataset
✓ from uxarray import UxDataset
UxDataArray
✓ from uxarray import UxDataArray
Grid
✓ from uxarray import Grid
open_dataset
✓ from uxarray import open_dataset
✗ from uxarray.core import open_dataset
The internal path is not public API.
Open an unstructured grid dataset and perform basic operations.
import uxarray as ux
# Open an unstructured grid dataset
ds = ux.open_dataset("https://raw.githubusercontent.com/UXARRAY/uxarray/main/test/meshfiles/geoflow-small.nc")
# Print the grid
print(ds.uxgrid)
# Compute the mean of a variable (if present)
if 'var' in ds:
print(ds['var'].mean())
# Visualize the grid
ds.uxgrid.plot.mesh()
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'uxarray'
uxarray is not installed.
fixRun 'pip install uxarray' or 'conda install -c conda-forge uxarray'.
ImportError: cannot import name 'open_dataset' from 'uxarray'
Using an old version that does not export 'open_dataset' at the top level.
fixUpgrade uxarray: 'pip install --upgrade uxarray'.
ValueError: Grid type not recognized or unsupported format
The file does not contain a recognized unstructured grid format or has missing attributes.
fixCheck that the file is a supported format (UGRID, MPAS, etc.) and contains required grid topology variables. Use 'uxarray.Grid.from_file()' for more control.
Upgrade
Version history
2026.6.0latest on PyPI · released Jun 18, 2026
Audit
Dependencies
xarrayrequiredCore dependency for data structures and operations.
numpyrequiredArray operations.
matplotliboptionalPlotting support.