Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

The Rerun Python SDK

Use the Rerun SDK to record data like images, tensors, point clouds, and text. Data is streamed to the Rerun Viewer for live visualization or to file for later use.

Rerun Viewer

Install

pip3 install rerun-sdk

ℹ️ Note: The Python module is called rerun, while the package published on PyPI is rerun-sdk.

For other SDK languages see Installing Rerun.

We also provide a Jupyter widget for interactive data visualization in Jupyter notebooks:

pip3 install rerun-sdk[notebook]

Example

import rerun as rr
import numpy as np

rr.init("rerun_example_app", spawn=True)

positions = np.vstack([xyz.ravel() for xyz in np.mgrid[3 * [slice(-5, 5, 10j)]]]).T
colors = np.vstack([rgb.ravel() for rgb in np.mgrid[3 * [slice(0, 255, 10j)]]]).astype(np.uint8).T

rr.log("points3d", rr.Points3D(positions, colors=colors))

Resources

Logging and viewing in different processes

You can run the Viewer and logger in different processes.

In one terminal, start up a Viewer with a server that the SDK can connect to:

python3 -m rerun

In a second terminal, run the example with the --connect option:

python3 examples/python/plots/plots.py --connect

Note that SDK and Viewer can run on different machines!

Building Rerun from source

We use pixi for managing dev-tool versioning, download and task running. See here for installation instructions.

pixi run py-build

This builds the SDK for Python (use pixi run py-build --release for a release build).

You can then run examples via uv:

pixi run uv run examples/python/minimal/minimal.py

To build a wheel instead for manual install use:

pixi run py-build-wheel

Refer to BUILD.md for details on the various different build options of the Rerun Viewer and SDKs for all target languages.

Installing a pre-release

Prebuilt dev wheels from head of main are available at https://github.com/rerun-io/rerun/releases/tag/prerelease.

While we try to keep the main branch usable at all times, it may be unstable occasionally. Use at your own risk.

Running Python unit tests

pixi run py-test

If you run into a problem, run rm -rf .pixi .venv and try again.

Running specific Python unit tests

pixi run py-build && pixi run uvpy -m pytest rerun_py/tests/unit/test_tensor.py

Profiling the Python SDK

Set RERUN_PUFFIN=1 to spawn a puffin_viewer attached to the SDK on startup. The Rust side of the SDK then streams scopes (anything wrapped in re_tracing::profile_function! / profile_scope!) to the viewer for the lifetime of the process.

RERUN_PUFFIN=1 pixi run uvpy your_script.py

Save a recording from the viewer for offline analysis (use the investigate-puffin skill in .claude/skills/).

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

rerun_sdk-0.35.1rc1-cp310-abi3-win_amd64.whl (133.4 MB view details)

Uploaded CPython 3.10+Windows x86-64

rerun_sdk-0.35.1rc1-cp310-abi3-manylinux_2_28_x86_64.whl (154.6 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ x86-64

rerun_sdk-0.35.1rc1-cp310-abi3-manylinux_2_28_aarch64.whl (149.7 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

rerun_sdk-0.35.1rc1-cp310-abi3-macosx_11_0_arm64.whl (140.3 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file rerun_sdk-0.35.1rc1-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for rerun_sdk-0.35.1rc1-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 072e34441f79ba483d56998d5c35dc5f1379d4f747cb4c3ae806e131b1cbc874
MD5 8b80ea6e09025262966216e1e02b4be7
BLAKE2b-256 817ece6795e50a2a31dd4ed86878b8da82aab77d2b9b47f00efa55a6ea614155

See more details on using hashes here.

File details

Details for the file rerun_sdk-0.35.1rc1-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for rerun_sdk-0.35.1rc1-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 f31bdc54c885b1676b032559f481aad7f887118c49844d653efd6b2eb97075dd
MD5 f4924e3502a40dec53ad53cd0c734bcd
BLAKE2b-256 9312a25a9658d0d857bf18669222cb7a46ebc50e39d7b2b93685c14b8157a6bc

See more details on using hashes here.

File details

Details for the file rerun_sdk-0.35.1rc1-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for rerun_sdk-0.35.1rc1-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0674945f2ff36f976265b55349c9c34685afbee6371cfc34c28392197c11903e
MD5 4d69497a9bebc44519219d9c25cc3ea5
BLAKE2b-256 108c2c6a5aad75a1e47e4a888c64d2b96ade2d264b5210cbf544f09adf2dbcb5

See more details on using hashes here.

File details

Details for the file rerun_sdk-0.35.1rc1-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rerun_sdk-0.35.1rc1-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4d78088f680dc7b6d881950276c1e18070a19bdcde3b6551f89a215183c3823f
MD5 e7a580a169baac5e96d900a4146218d4
BLAKE2b-256 fce4f609bfd508c962ea749da7e68941e5dedf7687f2c23a69c3c3ca2be81f2b

See more details on using hashes here.

Release history Release notifications | RSS feed

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