Skip to main content

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.

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

Uploaded CPython 3.10+Windows x86-64

rerun_sdk-0.38.0-cp310-abi3-manylinux_2_28_x86_64.whl (168.4 MB view details)

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

rerun_sdk-0.38.0-cp310-abi3-manylinux_2_28_aarch64.whl (163.0 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

rerun_sdk-0.38.0-cp310-abi3-macosx_11_0_arm64.whl (152.5 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

Details for the file rerun_sdk-0.38.0-cp310-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for rerun_sdk-0.38.0-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 4ff586117f381b33e2b867c846016dcbfac303cc07d6e20d9634fc8d2e9e0064
MD5 30d38e0fbf21bf9fc2e7ff8aa51bc511
BLAKE2b-256 90f46952e061834ccad8456f2534975429fb482cae812de1a9001a0e7d51d0b0

See more details on using hashes here.

File details

Details for the file rerun_sdk-0.38.0-cp310-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for rerun_sdk-0.38.0-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 2dc0ff6db668c5c97ea2ccd601a345504b3feb3780347e83589f4ddcd6fa90c5
MD5 5f2144e72163a8f8b59d25a7fc0c913b
BLAKE2b-256 52f0368c9ebafcd374ca400a5deb796d71bca3ba34b1820b7d15b1603b0c1423

See more details on using hashes here.

File details

Details for the file rerun_sdk-0.38.0-cp310-abi3-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for rerun_sdk-0.38.0-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 e31c92c55f3b36a7752fc23b3d41b3a94178e3fbba4b968da8bb6a450128e820
MD5 be11087b84ca84267dda34565af0b11e
BLAKE2b-256 5810d654cc364c4ba5150b8ef7fb88db8dcba80d4e23ba40a9047b0320bdea00

See more details on using hashes here.

File details

Details for the file rerun_sdk-0.38.0-cp310-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for rerun_sdk-0.38.0-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 daf4761f2d841cfa7e30e3ba757672e4d831e957ab7119fdba777a7e05a3ec91
MD5 ee1628b7d95b1ba26d0f605bc47a8f07
BLAKE2b-256 d73ff4f2549d355258e3efeb5e22a060a400a764de090e6b32a1a8ffb15bb900

See more details on using hashes here.

Release history Release notifications | RSS feed

0.38.1

4 files

This release

0.38.0 This release

4 files

0.37.2

4 files

0.37.1

4 files

0.37.0

4 files

0.36.3

4 files

0.36.2

4 files

0.36.1

4 files

0.36.0

4 files

0.35.0

4 files

0.34.1

4 files

0.34.0

4 files

0.33.1

4 files

0.33.0

4 files

0.32.2

4 files

0.32.1

4 files

0.32.0

4 files

0.31.4

4 files

0.31.3

4 files

0.31.2

4 files

0.31.1

4 files

0.31.0

4 files

0.30.2

4 files

0.30.1

4 files

0.30.0

4 files

0.29.2

4 files

0.29.1

4 files

0.29.0

4 files

0.28.2

4 files

0.28.1

4 files

0.28.0

4 files

0.27.3

4 files

0.27.2

4 files

0.27.1

4 files

0.27.0

4 files

0.26.2

5 files

0.26.1

5 files

0.26.0

5 files

0.25.1

5 files

0.25.0

5 files

0.24.1

5 files

0.24.0

5 files

0.23.4

5 files

0.23.3

5 files

0.23.2

5 files

0.23.1

5 files

0.23.0

5 files

0.22.1

5 files

0.22.0

5 files

0.21.0

5 files

0.20.3

5 files

0.20.2

5 files

0.20.1

5 files

0.20.0

5 files

0.19.1

5 files

0.19.0

5 files

0.18.2

5 files

0.18.1

5 files

0.18.0

5 files

0.17.0

5 files

0.16.1

5 files

0.16.0

5 files

0.15.1

5 files

0.15.0

5 files

0.14.1

4 files

0.14.0

4 files

0.13.0

4 files

0.12.1

4 files

0.12.0

4 files

0.11.0

4 files

0.10.1

4 files

0.10.0

4 files

0.9.1

4 files

0.9.0

4 files

0.8.2

4 files

0.8.1

4 files

0.8.0

4 files

0.7.0

4 files

0.6.0

4 files

0.5.1

4 files

0.5.0

4 files

0.4.0

4 files

0.3.1

4 files

0.3.0

4 files

0.2.0

3 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