Skip to main content

Python bindings and notebook widget support for ruviz

Project description

ruviz for Python

ruviz for Python wraps the Rust plotting runtime with a fluent Python API, static export helpers, native desktop show(), and notebook widget support.

Install

pip install ruviz

Quick Start

import numpy as np
import ruviz

x = np.linspace(0.0, 4.0, 50)
y = x**2

(
    ruviz.plot()
    .line(x, y)
    .title("Quadratic")
    .xlabel("x")
    .ylabel("y = x^2")
    .save("quadratic.png")
)

Notebook and Desktop Usage

  • In Jupyter, plot.show() displays a static PNG in the cell output.
  • Use plot.widget() when you want the synced WASM-backed notebook widget.
  • Outside notebooks, plot.show() opens the native interactive window.
  • plot.render_png() and plot.render_svg() return in-memory export data.

Reactive Notebook Data

Use ruviz.observable(...) for notebook-driven updates that keep widget state in sync:

import numpy as np
import ruviz

x = np.linspace(0.0, 6.0, 200)
y = ruviz.observable(np.sin(x))

plot = ruviz.plot().line(x, y).title("Live Sine Wave")
widget = plot.widget()

Documentation

Contributor Workflow

cd python
uv sync
uv run maturin develop
uv run python scripts/generate_gallery.py
uv run mkdocs serve

Rebuild the bundled widget frontend from the repository root when you change the web SDK or python/python/ruviz/widget.entry.js:

bun run build:python-widget

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

ruviz-0.4.0.tar.gz (7.1 MB view details)

Uploaded Source

Built Distributions

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

ruviz-0.4.0-cp310-abi3-win_amd64.whl (6.8 MB view details)

Uploaded CPython 3.10+Windows x86-64

ruviz-0.4.0-cp310-abi3-macosx_11_0_arm64.whl (6.8 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

ruviz-0.4.0-cp310-abi3-macosx_10_12_x86_64.whl (7.0 MB view details)

Uploaded CPython 3.10+macOS 10.12+ x86-64

File details

Details for the file ruviz-0.4.0.tar.gz.

File metadata

  • Download URL: ruviz-0.4.0.tar.gz
  • Upload date:
  • Size: 7.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ruviz-0.4.0.tar.gz
Algorithm Hash digest
SHA256 4b8ff6e057f3511cdb3195a94dd95da8758e94acb0cc4ad8ea2e882241a24f9e
MD5 0d896e4b6a8b2abf236e62c4a3d68738
BLAKE2b-256 5479d15362d1742d45ec2a1dbb845e945600f283363e7f89b5fa668ef9f629b0

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruviz-0.4.0.tar.gz:

Publisher: release.yml on Ameyanagi/ruviz

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

File details

Details for the file ruviz-0.4.0-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: ruviz-0.4.0-cp310-abi3-win_amd64.whl
  • Upload date:
  • Size: 6.8 MB
  • Tags: CPython 3.10+, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for ruviz-0.4.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d778487402f34827940e0dd4ec84fa584c6b2bc16cc3a0adb838be68f493d48c
MD5 28d2234fdf749b5215d957f7a5e4c829
BLAKE2b-256 3900628bc539abb51e7a18ba4487f4b2360e5acf02044c3baa96894ec4a9b29b

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruviz-0.4.0-cp310-abi3-win_amd64.whl:

Publisher: release.yml on Ameyanagi/ruviz

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

File details

Details for the file ruviz-0.4.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ruviz-0.4.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d0c7f62ae9729bfabdbf534783750d9ca4c4c124439653c5f67d2380bd6a2242
MD5 ddf3a1d3e859d115fdfa79509df30b02
BLAKE2b-256 b093d1500f7409bafe002b6ad65c5c73c034055a9430099e7333674099cc5395

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruviz-0.4.0-cp310-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on Ameyanagi/ruviz

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

File details

Details for the file ruviz-0.4.0-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for ruviz-0.4.0-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 24d84d05a7636b68290b29ad6f62c4e381665377d90347016f57efd52a4f3937
MD5 c518e6bd79690cb836f67bf3a8aa2ad3
BLAKE2b-256 ed4a675aecc151699a78c96cc9b2f45ff01635cbc75de29b8a0e46fb7b3dc126

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruviz-0.4.0-cp310-abi3-macosx_10_12_x86_64.whl:

Publisher: release.yml on Ameyanagi/ruviz

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