The Rerun Python SDK is an open-source library for logging, storing, querying, and visualizing multimodal and multi-rate data. It provides Python APIs to stream data like images, tensors, point clouds, and text to the Rerun Viewer for live visualization or to a file for later use. It is currently in active development, with frequent releases, and is particularly useful in areas like robotics, simulation, and computer vision, aiming to help users understand and improve complex processes involving rich, time-aware multimodal data.
pip install rerun-sdkVerified import paths — ran on the pinned version, not inferred.
This quickstart logs a grid of colored 3D points to the Rerun Viewer. It initializes the SDK, generates synthetic data using NumPy, and then uses `rr.log` to send the `Points3D` archetype to the viewer. The `spawn=True` argument automatically launches the Rerun Viewer application.
Refer to the official migration guides and CHANGELOG for specific version updates and API changes. Regularly update and test your code against new releases.
Always use `import rerun as rr` (or `import rerun`) in your Python code.
Consider optimizing your logging frequency, downsampling large datasets, or using more efficient archetypes for high-volume data. Monitor viewer performance and adjust data complexity as needed.
For concurrent data output, use `rr.set_sinks()` to manage multiple sinks. Avoid calling `rr.spawn()`, `rr.save()`, or `rr.connect_grpc()` individually if multiple outputs are required.
Install the Rerun SDK using pip: `pip install rerun-sdk`
Use `rr.log("entity_path", component_type(...))`. For example, instead of `rr.log_points("my_points", positions)`, use `rr.log("my_points", rr.Points3D(positions))`.Add `rr.init("your_app_name", spawn=True)` at the very beginning of your script, before any `rr.log()` calls.Ensure `rr.init("your_app_name", spawn=True)` is called (to automatically launch a viewer), or if `spawn=False`, manually run the Rerun Viewer in a terminal with the command `rerun` before starting your script. Check firewall settings if necessary.