Skip to main content

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

import ridgeai as ri

ri.Dashboard(data=df, spec=my_spec)

Metadata

Release files for ridgeai 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ridgeai 0.1.0
File Size Uploaded Provenance Actions
ridgeai-0.1.0.tar.gz 190.3 kB With provenance Details for ridgeai-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ridgeai 0.1.0
File Interpreter ABI Platform Actions
ridgeai-0.1.0-py3-none-any.whl Python 3 none any Details for ridgeai-0.1.0-py3-none-any.whl

Total release size: 382.7 kB

Release files / ridgeai-0.1.0.tar.gz

Download URL ridgeai-0.1.0.tar.gz
Size 190.3 kB
Tags Source
SHA-256 checksum
How to use checksums
3ed68298fcc4ed58408dbe96bc7a00151732083ef49200d536fd62b24d1a812e
BLAKE2b-256 checksum
How to use checksums
2a84367557556d7e1a019ddb6ff53842b0afa92f6c22b169eedf49f890df4ab5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 10, 2026.

Transparency log

Release files / ridgeai-0.1.0-py3-none-any.whl

Download URL ridgeai-0.1.0-py3-none-any.whl
Size 192.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8218e6ffb38a372e621997a9dc06ffa49d742f78518f946595770d2fdee6babe
BLAKE2b-256 checksum
How to use checksums
13969a9511a7fef3e9d6af3c891957b68e64482730db1f4da5d2487d7539fe8d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 10, 2026.

Transparency log

Security for ridgeai 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ridgeai-0.1.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Apr 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page