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.1.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.1-cp310-abi3-win_amd64.whl (6.8 MB view details)

Uploaded CPython 3.10+Windows x86-64

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

Uploaded CPython 3.10+macOS 11.0+ ARM64

ruviz-0.4.1-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.1.tar.gz.

File metadata

  • Download URL: ruviz-0.4.1.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.1.tar.gz
Algorithm Hash digest
SHA256 554845b5a00c284e31ec6875380e9ff01fc6c2bab39c176dc4113bc670a5658e
MD5 90ef5fd974db061e8a1c9760bf8b8d95
BLAKE2b-256 486341adb22fd3679bf8a18c90a197cca1925f66624564bd64018b859102d562

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruviz-0.4.1.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.1-cp310-abi3-win_amd64.whl.

File metadata

  • Download URL: ruviz-0.4.1-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.1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 e44829fbba0720a88acc5e264bd1aa4e301a9d54bf9cecffa7ed4c45fb6e93c1
MD5 50e6309d0f736827af084e7d07649510
BLAKE2b-256 a1dc8c35e65eac43108f75541902fa88e23ef75b24b9ad74fedd8c3ea412b669

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruviz-0.4.1-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.1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for ruviz-0.4.1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4b56c010f5086ae23ec5876d4a1f57e329065e560a0e5ec998f2d92a48404f84
MD5 110e417103cefe5d7b48f21f49e6b707
BLAKE2b-256 2341b8b047e58dfc4291ab67adbbee70455f71773a0a11c4ed83bf26749cebdd

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruviz-0.4.1-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.1-cp310-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for ruviz-0.4.1-cp310-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 c374b9f9da88af3430daf1c4bc229a0fc271c72ddc2048dc3005424c5b53b05d
MD5 d0b62e613fb205079a5b68e7861ee399
BLAKE2b-256 08f50a3f3b9dc5310ce5cbe95424df7deec05b915e6c9662ec6c88bbcc95f556

See more details on using hashes here.

Provenance

The following attestation bundles were made for ruviz-0.4.1-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