Skip to content

DOC: show two input core dimensions in apply_ufunc - #386

Open
Himanshuagrawal4 wants to merge 2 commits into
xarray-contrib:mainfrom
Himanshuagrawal4:PRO/xarray-tutorial-multiple-core-dims-20261203
Open

Himanshuagrawal4 wants to merge 2 commits into
xarray-contrib:mainfrom
Himanshuagrawal4:PRO/xarray-tutorial-multiple-core-dims-20261203

Conversation

@Himanshuagrawal4

Copy link
Copy Markdown

Summary

Add a small matrix-norm example to the core dimensions lesson. It shows how input_core_dims=[["y", "x"]] moves both core dimensions to the last two axes even when the broadcast dimension is between them in the input. The result retains sample and its labels.

Refs #158.

Validation

Validated the notebook structure and ran the new cell locally. It returned the expected values 5 and 12 with the original sample coordinates. The full tutorial site was not built.

AI disclosure

OpenAI Codex assisted with the notebook changes, local checks, and this draft description. The changes were manually reviewed before opening this draft.

@review-notebook-app

Copy link
Copy Markdown

Review Notebooks

Notebooks changed:

Review visual diffs and comment on any notebook cell. All comments sync back to this PR.


Powered by ReviewNB

@Himanshuagrawal4
Himanshuagrawal4 marked this pull request as ready for review December 2, 2026 19:57

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant