Skip to main content
Pre-release

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

Rerun

The data layer for physical AI

The data primitives to build, understand, and improve your data loop. Designed for multi-rate, multimodal data, from the first recording to massive scale.

The open source Rerun Python SDK provides a single toolchain to log, transform, query, view, and train on multi-rate, multimodal data.

Install

pip install rerun-sdk

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

See Install Rerun for the Viewer and other SDK languages.

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

pip install rerun-sdk[notebook]

Example

import numpy as np
import rerun as rr

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

The Viewer and Python logger can run in separate processes. Start the Viewer in one terminal:

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! See SDK operating modes for connection options.

Building Rerun from source

Rerun uses pixi for development tools and tasks. Install pixi, clone the repository, and run these commands from its rerun/ directory.

Build and install a development version of the Python SDK:

pixi run py-build

For an optimized build, use:

pixi run py-build-release

Run an example in the development environment:

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

Build a wheel for manual installation:

pixi run py-build-wheel

See BUILD.md for all Viewer and SDK build options.

Installing a pre-release

Development wheels built from the latest main branch are available from the prerelease release. The main branch can be unstable, so use these wheels at your own risk.

Running Python unit tests

Run the full Python test suite:

pixi run py-test

Build the SDK and run one test file:

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

Profiling the Python SDK

Install puffin_viewer, then set RERUN_PUFFIN=1 when you start a Python program:

cargo install puffin_viewer
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/).

For the Viewer side of things, and for tracking down streaming latency, see Diagnose latency and performance.

Metadata

Release files for rerun-sdk 0.39.0a2

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

Built distributions (wheels)

Table of built distributions (wheels) for rerun-sdk 0.39.0a2
File
rerun_sdk-0.39.0a2-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details
rerun_sdk-0.39.0a2-cp310-abi3-manylinux_2_28_x86_64.whl CPython 3.10 abi3 Linux glibc 2.28+ x86-64 Details
rerun_sdk-0.39.0a2-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details
rerun_sdk-0.39.0a2-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details

Total release size: 636.0 MB

Release files / rerun_sdk-0.39.0a2-cp310-abi3-win_amd64.whl

Download URL rerun_sdk-0.39.0a2-cp310-abi3-win_amd64.whl
Size 146.9 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
2e785094bd28af9dae86c103194863245b297f92dc273d9e63d9fdadc1cc91e7
BLAKE2b-256 checksum
How to use checksums
3b70eb19144ae878fd5efe191a4c734f7cdee8d0eb81ff06f99b9a592a8fcbee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.14.1

Release files / rerun_sdk-0.39.0a2-cp310-abi3-manylinux_2_28_x86_64.whl

Download URL rerun_sdk-0.39.0a2-cp310-abi3-manylinux_2_28_x86_64.whl
Size 170.4 MB
Tags CPython 3.10 Linux glibc 2.28+ x86-64 abi3
SHA-256 checksum
How to use checksums
847f49e4a09f9c0cf96ff7a3720ed0af49aba8321879a3f10ef7403add8dbbda
BLAKE2b-256 checksum
How to use checksums
32aebc600fee087f5c45ebbc8f2b3dabc15d537ae297d48c4960fa245d50cfd5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.14.1

Release files / rerun_sdk-0.39.0a2-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL rerun_sdk-0.39.0a2-cp310-abi3-manylinux_2_28_aarch64.whl
Size 164.9 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
1cbe9e2895eea247706b2420d8b16fe36fde25c4da21b66d44a4c7238df758d7
BLAKE2b-256 checksum
How to use checksums
39bcf520aaa7ec3d1698750ef88fa6ca531336c8adf498e0f5c0c9a9a383fa13
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.14.1

Release files / rerun_sdk-0.39.0a2-cp310-abi3-macosx_11_0_arm64.whl

Download URL rerun_sdk-0.39.0a2-cp310-abi3-macosx_11_0_arm64.whl
Size 153.8 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
6c722ac1899d8bb9045cc664d40ef84a035c0950f6e282c7450fef4e97b4c168
BLAKE2b-256 checksum
How to use checksums
aeb5bd97524aaf6ccf1d5c74a733e47714bf8ba743ae541b71079ba906b59be3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.14.1

Release history Release notifications | RSS feed

This release

0.39.0a2 This release

4 release files

0.38.1

4 release files

0.38.0

4 release files

0.37.2

4 release files

0.36.3

4 release files

0.36.2

4 release files

0.36.1

4 release files

0.36.0

4 release files

0.35.0

4 release files

0.33.1

4 release files

0.33.0

4 release files

0.32.2

4 release files

0.32.1

4 release files

0.32.0

4 release files

0.31.4

4 release files

0.31.3

4 release files

0.31.1

4 release files

0.31.0

4 release files

0.30.2

4 release files

0.30.0

4 release files

0.29.2

4 release files

0.29.0

4 release files

0.28.1

4 release files

0.28.0

4 release files

0.27.2

4 release files

0.27.1

4 release files

0.27.0

4 release files

0.26.2

5 release files

0.26.1

5 release files

0.26.0

5 release files

0.25.1

5 release files

0.25.0

5 release files

0.24.0

5 release files

0.23.4

5 release files

0.23.3

5 release files

0.23.1

5 release files

0.23.0

5 release files

0.22.1

5 release files

0.21.0

5 release files

0.20.2

5 release files

0.20.1

5 release files

0.20.0

5 release files

0.19.0

5 release files

0.18.2

5 release files

0.18.1

5 release files

0.18.0

5 release files

0.16.1

5 release files

0.16.0

5 release files

0.15.1

5 release files

0.14.1

4 release files

0.14.0

4 release files

0.13.0

4 release files

0.12.1

4 release files

0.11.0

4 release files

0.10.0

4 release files

0.9.1

4 release files

0.9.0

4 release files

0.8.2

4 release files

0.8.1

4 release files

0.8.0

4 release files

0.7.0

4 release files

0.6.0

4 release files

0.5.1

4 release files

0.5.0

4 release files

0.4.0

4 release files

0.3.1

4 release files

0.3.0

4 release files

0.2.0

3 release files

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