This release is a pre-release and may not be stable for production use.
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/).
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rerun_sdk-0.36.3rc1-cp310-abi3-win_amd64.whl.
File metadata
- Download URL: rerun_sdk-0.36.3rc1-cp310-abi3-win_amd64.whl
- Upload date:
- Size: 140.7 MB
- Tags: CPython 3.10+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8be3f36cec501d24421916bb7d1bcede2850803c55cf0e9960e17853a55866cd
|
|
| MD5 |
304dbec06135b9176b0e273846744d29
|
|
| BLAKE2b-256 |
5b700d0acb48bbc65fffa126f0e2562abf2c8ea23a30f5500f975cd54b62a7f4
|
File details
Details for the file rerun_sdk-0.36.3rc1-cp310-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: rerun_sdk-0.36.3rc1-cp310-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 163.0 MB
- Tags: CPython 3.10+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via:
maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
81df265d635400fcdb6c27e0603f23959e92aa489f324d69c233c12fca30a04d
|
|
| MD5 |
ae6d29a57c98b6cd10e4ee815789947c
|
|
| BLAKE2b-256 |
b9f88c45c681844c9beb2bc9f2ab3d60fe19b2985f4003ef083d9e8a1d430b4f
|
File details
Details for the file rerun_sdk-0.36.3rc1-cp310-abi3-manylinux_2_28_aarch64.whl.
File metadata
- Download URL: rerun_sdk-0.36.3rc1-cp310-abi3-manylinux_2_28_aarch64.whl
- Upload date:
- Size: 157.8 MB
- Tags: CPython 3.10+, manylinux: glibc 2.28+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9bdc332be804c869004cc5d0108ba43fce054f8aea7ab9cc1f276e5d391fa037
|
|
| MD5 |
4e386dfd9db1de7883b73f90b223ce8a
|
|
| BLAKE2b-256 |
df6fe76e1d136a6108bd9eaf3371b5061995846af7679049a74558825cda483e
|
File details
Details for the file rerun_sdk-0.36.3rc1-cp310-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: rerun_sdk-0.36.3rc1-cp310-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 147.5 MB
- Tags: CPython 3.10+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via:
maturin/1.14.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cb18584a4c63cbcbb00cc4906983ea0ea532cbd038a14f4f14ce37db872e13b
|
|
| MD5 |
2d36fb9e44732ae18827a4f9d079f1f3
|
|
| BLAKE2b-256 |
efce9c17f5ce524dac9edf240b72b8e717c09524b6429b76d12d25fd0a03d657
|