Skip to main content

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

Uploaded CPython 3.10+Windows x86-64

rerun_sdk-0.36.2-cp310-abi3-manylinux_2_28_x86_64.whl (163.0 MB view details)

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

rerun_sdk-0.36.2-cp310-abi3-manylinux_2_28_aarch64.whl (157.8 MB view details)

Uploaded CPython 3.10+manylinux: glibc 2.28+ ARM64

rerun_sdk-0.36.2-cp310-abi3-macosx_11_0_arm64.whl (147.5 MB view details)

Uploaded CPython 3.10+macOS 11.0+ ARM64

File details

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

File metadata

File hashes

Hashes for rerun_sdk-0.36.2-cp310-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d7c73d60f02ca6d52ffd55fa633e1ba76ff162b5f85d8ab19115aaf3fe54f550
MD5 ad0c16640cc4ec3aa26872bc80992f3e
BLAKE2b-256 c94df4e6204bb1ba64b124cbb50a899f3c8a10debc0dc611a284cc50404e6fdd

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rerun_sdk-0.36.2-cp310-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4870263016b8d97d88563a247c3981dcd7b439f431b7fe99e0ea99243585f53a
MD5 54c5d6949e77aac9727b19e0ca7029ea
BLAKE2b-256 e7669c3e574c6c359a2a58af9fed67dad7895e507eb37fb4967d9203eb1a4006

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rerun_sdk-0.36.2-cp310-abi3-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 dcbfc53d2e8b5acac87487b3e1011fe04885c02ac5aa181a38d4dc43355fa183
MD5 680bf4695870dfca19592c50d71ec49f
BLAKE2b-256 c7563fda522118a012acbff390f85d4c0332e56e54ed54b6802abaa1109264ba

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for rerun_sdk-0.36.2-cp310-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6e5c052ce81cb5b0c6e72730edb3e0f2eca97b4b607d08ac4d0f42c2cde2a319
MD5 0f8d7dd47a2fc6f62cea8421fcf322df
BLAKE2b-256 e2cdb6889ca236ee678f1647c699d2d648a20fe15a81a23abec3ce5647b9b2c0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.36.2 This release

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page