No project description provided
Project description
Ridge AI Python
Ridge AI Python client and interactive widgets for Jupyter Lab and Marimo.
Installation
pip install ridgeai
Widgets
Table
Display an interactive data table with profiling and row selection.
import ridgeai as ri
# From a Polars DataFrame
ri.Table(df)
# From a DuckDB connection
ri.Table(conn, table="my_table")
# With a custom query
ri.Table(conn, query="SELECT * FROM my_table WHERE value > 100")
Retrieve Selected Rows
table = ri.Table(df)
table
After having selected one or more rows, you can extract the row values as follows:
table.selected_rows
You can of course also observe changes:
table.observe(names=["selected_rows"])
def on_selection_change(change):
selection = change["new"]
print(selection)
Plot
Auto-generate a chart from your data.
import ridgeai as ri
# From a Polars DataFrame (specify columns to plot)
ri.Plot(df, columns=["date", "revenue"])
# From a DuckDB connection
ri.Plot(conn, table="my_table", columns=["x", "y"])
# With a custom query
ri.Plot(conn, query="SELECT date, sum(revenue) FROM sales GROUP BY date")
Dashboard
Render an interactive remote dashboard with AI-powered chat.
import ridgeai as ri
ri.Dashboard(id="your-dashboard-id")
For this to work, you need a Ridge AI API key from https://app.ridgedata.ai.
Set it as an environment variable or in a .env file in your working directory:
RIDGE_AI_API_KEY=rk_your_api_key_here
Alternatively, pass it directly:
ri.Dashboard(id="...", api_key="rk_...")
Local Dashboard
[!WARNING] You can also render a local dashboard if you have the spec handy. However, only do this if you know what you're up to.
import ridgeai as ri
ri.Dashboard(data=df, spec=my_spec)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ridgeai-0.1.0.tar.gz.
File metadata
- Download URL: ridgeai-0.1.0.tar.gz
- Upload date:
- Size: 190.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3ed68298fcc4ed58408dbe96bc7a00151732083ef49200d536fd62b24d1a812e
|
|
| MD5 |
1bce1ea4c7e6fc65e2dec704cc7b20ba
|
|
| BLAKE2b-256 |
2a84367557556d7e1a019ddb6ff53842b0afa92f6c22b169eedf49f890df4ab5
|
Provenance
The following attestation bundles were made for ridgeai-0.1.0.tar.gz:
Publisher:
publish-python.yml on ridge-ai/apps
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ridgeai-0.1.0.tar.gz -
Subject digest:
3ed68298fcc4ed58408dbe96bc7a00151732083ef49200d536fd62b24d1a812e - Sigstore transparency entry: 1274387025
- Sigstore integration time:
-
Permalink:
ridge-ai/apps@e2914fd4f6ce8a6a1c05fc966604906cbb3e2eb7 -
Branch / Tag:
refs/tags/python-v0.1.0 - Owner: https://github.com/ridge-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@e2914fd4f6ce8a6a1c05fc966604906cbb3e2eb7 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ridgeai-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ridgeai-0.1.0-py3-none-any.whl
- Upload date:
- Size: 192.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8218e6ffb38a372e621997a9dc06ffa49d742f78518f946595770d2fdee6babe
|
|
| MD5 |
7bc468ea853f883737704d1ddd5d6113
|
|
| BLAKE2b-256 |
13969a9511a7fef3e9d6af3c891957b68e64482730db1f4da5d2487d7539fe8d
|
Provenance
The following attestation bundles were made for ridgeai-0.1.0-py3-none-any.whl:
Publisher:
publish-python.yml on ridge-ai/apps
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ridgeai-0.1.0-py3-none-any.whl -
Subject digest:
8218e6ffb38a372e621997a9dc06ffa49d742f78518f946595770d2fdee6babe - Sigstore transparency entry: 1274387100
- Sigstore integration time:
-
Permalink:
ridge-ai/apps@e2914fd4f6ce8a6a1c05fc966604906cbb3e2eb7 -
Branch / Tag:
refs/tags/python-v0.1.0 - Owner: https://github.com/ridge-ai
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yml@e2914fd4f6ce8a6a1c05fc966604906cbb3e2eb7 -
Trigger Event:
push
-
Statement type: