https://github.com/benbovy/xarray-fancy-repr
Fancy reprs for Xarray objects in Jupyter notebooks (experimental)
https://github.com/benbovy/xarray-fancy-repr
jupyter widget xarray
Last synced: 5 months ago
JSON representation
Fancy reprs for Xarray objects in Jupyter notebooks (experimental)
- Host: GitHub
- URL: https://github.com/benbovy/xarray-fancy-repr
- Owner: benbovy
- License: apache-2.0
- Created: 2023-09-12T14:59:08.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-20T08:38:09.000Z (over 2 years ago)
- Last Synced: 2025-07-03T06:51:32.746Z (6 months ago)
- Topics: jupyter, widget, xarray
- Language: TypeScript
- Homepage:
- Size: 113 KB
- Stars: 12
- Watchers: 4
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Xarray Fancy Repr
This package provides enhanced representations of Xarray objects (Dataset,
DataArray, Coordinates and Variable) for a better and more interactive user
experience within Jupyter notebooks.
## Installation
```sh
pip install xarray-fancy-repr
```
## How Does it Work?
After importing this package:
```python
import xarray_fancy_repr
```
Xarray objects are patched so that they are displayed in the following fallback
order:
1. Interactive widget: should work in most notebook environments (JupyterLab,
Jupyter Notebook <7 and 7+, Google Colab, VSCode, etc.) based on
[anywidget](https://anywidget.dev/)
2. Static HTML: should work in any web browser
3. Plain text