Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ridgeai-0.1.0.tar.gz (190.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ridgeai-0.1.0-py3-none-any.whl (192.3 kB view details)

Uploaded Python 3

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

Hashes for ridgeai-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3ed68298fcc4ed58408dbe96bc7a00151732083ef49200d536fd62b24d1a812e
MD5 1bce1ea4c7e6fc65e2dec704cc7b20ba
BLAKE2b-256 2a84367557556d7e1a019ddb6ff53842b0afa92f6c22b169eedf49f890df4ab5

See more details on using hashes here.

Provenance

The following attestation bundles were made for ridgeai-0.1.0.tar.gz:

Publisher: publish-python.yml on ridge-ai/apps

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for ridgeai-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8218e6ffb38a372e621997a9dc06ffa49d742f78518f946595770d2fdee6babe
MD5 7bc468ea853f883737704d1ddd5d6113
BLAKE2b-256 13969a9511a7fef3e9d6af3c891957b68e64482730db1f4da5d2487d7539fe8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for ridgeai-0.1.0-py3-none-any.whl:

Publisher: publish-python.yml on ridge-ai/apps

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page