Metadata-Version: 2.4
Name: corr_vars_widget
Version: 0.0.8
Summary: A simple AnyWidget to visualise corr_vars cohort objects.
Project-URL: Homepage, https://github.com/CUB-CORR/corr-vars-widget
Project-URL: Issues, https://github.com/CUB-CORR/corr-vars-widget/issues
Author-email: Pedram Ramezani <me@pedramramezani.de>
License-Expression: MIT
License-File: LICENSE
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Requires-Python: >=3.9
Requires-Dist: anywidget
Requires-Dist: duckdb
Requires-Dist: polars
Requires-Dist: pyarrow
Description-Content-Type: text/markdown

# corr_vars_widget

An collection of [AnyWidget](https://anywidget.dev/) for the `corr_vars` package.

## Widgets

### ObsWidget

Displays a `polars.DataFrame` in a [Quak Widget](https://github.com/manzt/quak) with additional infos about the shape and the observation level.

### ObsmWidget

Displays a list of `polars.DataFrame` in [Quak Widgets](https://github.com/manzt/quak) within collapsible accordions with additional infos about the shape of the respective `polars.DataFrame`.

### JsonWidget

Displays a searchable JSON viewer (filtering the keys of the first level). The JSON object is displayed in a collapsible view.

### JsonmWidget

Displays a dict of JSON objects in collapsible accordions. A shared search bar filters the first-level keys across all JSON views.

## Development

Development requires [`uv`](https://github.com/astral-sh/uv) and
[`pnpm`](https://pnpm.io/).

```sh
uv venv
uv pip install -e . --group dev
pnpm dev # start a development server
uv run jupyter lab notebooks/example.ipynb
```