Inspect recordings

Open a segment, file, or live stream to explore its data in views. See How the Viewer is organized for the relationship between datasets, recordings, and blueprints.

Panels

1 — Sources panel; 2 — Blueprint panel; 3 — Viewport; 4 — Selection panel; 5 — Timeline panel

Viewer showing five numbered areas: Sources panel, blueprint panel, viewport, selection panel, and timeline panel

Command palette

Open the command palette with Cmd/Ctrl + K or Cmd/Ctrl + P, the search box in the top bar, or the menu. Use it to search for Viewer commands, entities and components in the active recording, or servers, datasets, and tables known to the Viewer. You can also enter a URL or file path to open it.

Command palette showing a search field, an agent mode hint, and a list of Viewer commands and shortcuts Command palette showing a search field, an agent mode hint, and a list of Viewer commands and shortcuts

Press Tab to switch to agent mode, where you can send a prompt to the agent panel. If you haven't set up an agent yet, the palette offers a button to do so.

Timeline panel

The timeline panel controls playback, picks the active timeline, and shows when each entity received data.

Timeline controls

The timeline controls sit at the top of the timeline panel and allow you to control the playback and what timeline is active.

timeline controls

They play, pause, step, and loop time like a video player. When looping you can choose to loop through the whole recording, or just a sub-section of timeline that you select. The rate of playback can also be sped up or slowed down by adjusting the rate multiplier.

Streams

The streams panel can be hidden with the layout config buttons at the top right corner of the viewer.

streams panel

On the right side you see circles for each logged event on the currently selected timeline over time. You can use the mouse to scrub the vertical time selector line to jump to arbitrary moments in time. The streams panel allows panning with right click and zooming with ctrl/cmd + scroll.

The tree on the left shows you all entities that were logged for this timeline. When you expand an entity you will see both the components that are associated with it, as well as any child entities. Selecting entities or events in the streams panel shows additional information in the selection panel about them respectively.

Discontinuity skipping

Rerun automatically detects discontinuities in the selected timeline and will skip over them while playing. This is particularly useful whenever you have large gaps in the timestamps of your data recordings. Detected discontinuities are visualized with a zigzag cut in the timeline.

Discontinuity skipping cannot be adjusted or turned off yet (#1150).

Viewport

The viewport is a flexible area where you can arrange your views: You can grab the title of any view to dock it to different parts of the viewport or to form tabs.

Blueprint panel

The blueprint panel shows the recording layout as a tree of containers, views, and the entities in each view. Use the eye icon to show or hide an item, or the remove button to remove it from the layout. Select an entity in a view to change its visualizers and other per-view settings in the selection panel.

See Customize your visualization for visualizers and overrides, and Recording layout and blueprints for saving and resetting layouts.

For recordings from a catalog dataset, see Select a recording blueprint.

Adding entities to views

To add or re-add an entity to a view:

  1. Select the target view in the blueprint panel
  2. Click the button in the Selection Panel to open the entity picker
  3. Select entities to add (only compatible entities for that view class are shown)

See Entity path filter for information on how view content is determined.

Selection panel

Select an item in a view, the blueprint panel, or the timeline panel to inspect its data and settings. For an entity in a view, you can also change its visualizers and per-view settings here. Use the back and forward arrows to revisit selections, or hold cmd/ctrl while clicking to select multiple items.

Linking views

Hovering and selection are shared by all views. When you hover or select an entity, or one instance of it (for example one point of a point cloud), it is highlighted in every view that shows the same entity path and instance.

This only links the same entity path. Different entities are not linked, even if they describe the same object, for example /camera/image and /world/points. To link them, give the related data the same entity path, or build your own linking with callbacks.

Time is also shared: all views show the same time cursor. Right-click in a time series view to move the time cursor to that time. To pan and zoom the time axis of several plots together, see linked time axes.

Recording layout and blueprints

A recording supplies the data; a recording blueprint describes how the Viewer displays it. It controls the layout, view settings, and panel states, independently of the recorded data. If you can change how something looks in the Viewer, that change is part of the recording blueprint. A table blueprint configures dataset and catalog tables separately.

What a recording blueprint holds

TopicWhat it coversIn the ViewerFrom code
Panel stateExpanded or collapsed panelsLayout buttonsPanel state
ArrangementContainers, tabs, and view placementViewport and blueprint panelContainers
ViewsView classes and their settingsBlueprint panelCreate a view
View contentsOrigin and entity path filterSelect a viewView contents
View propertiesBackground, bounds, eye, axes, and visible time rangesSelection panelView properties
Per-entity displayVisualizers, defaults, overrides, and component mappingsSelect an entity in a viewCustomize a visualization
Timeline panelTimeline and playback settingsTimeline panelBlueprint API

Which recording blueprint applies?

For live streams and directly imported recordings, the Viewer associates recording blueprints with the application ID. Recordings with the same application ID can share a layout. A catalog dataset can have several registered recording blueprints, including a default used when a segment is opened. The Viewer catalog can register embedded recording blueprints when it opens an .rrd. See catalog blueprints.

Heuristic, default, and current recording blueprints

The heuristic recording blueprint is generated from the data when no other layout is available. A supplied recording blueprint can also generate views automatically when auto_views is enabled. The default is supplied from code, a file, or the dataset; when none is set, the heuristic layout is used. The current recording blueprint is the layout currently shown and edited in the Viewer.

Current, default, and heuristic blueprints Diagram of how heuristics, user edits and a default blueprint from code or .rrd/.rbl files feed the current blueprint shown in the viewport

When generating views automatically, the Viewer:

  • Creates views for each view class that can show your data, for example one 3D view and one time series view.
  • Spatial views are created per subspace: a Pinhole starts a new 2D space, so each camera gets its own 2D view.
  • 2D views are split by image size, so images of different sizes are not stacked in the same view.
  • At most 8 views of the same class are created automatically.

To control automatic views from code, see Keep or stop automatic views.

Save and open .rbl files

Choose Save blueprint… in the File menu to save the current recording blueprint. Open an .rbl with Open file… or drag it into the Viewer. Recording blueprint files can be shared and version controlled. For loading from code, including C++, see Loading blueprints from any language.

Select a recording blueprint for a dataset

Blueprint dropdown listing the heuristic blueprint and the dataset's blueprints

For a recording opened from a catalog dataset, there's a dropdown in the top bar to switch between the recording blueprints registered for that dataset. The default recording blueprint is marked with a star.

The dropdown also has Heuristic to switch to the automatic heuristic recording blueprint. A recording blueprint without a name property is listed as <unnamed>.

In the list, the "…" button of the current recording blueprint has Export .rbl…, which saves it to a file, and Revert changes, which reverts local changes to the recording blueprint.

See Blueprints for how to register blueprints on a dataset.

Reset a recording blueprint

  • Reset current blueprint discards local edits and restores the state the current recording blueprint started from. A catalog recording blueprint is not downloaded again.
  • Reset to default blueprint returns to the supplied default, or the heuristic layout if no default is set.
  • Reset to heuristic blueprint generates a new layout from the data.

The reset button is in the blueprint panel; the other two commands are in the View menu and command palette.

What the Viewer keeps between sessions

The native Viewer remembers recording blueprint edits for an application ID across restarts. A newly supplied default does not automatically replace those edits; use Reset to default blueprint or send the recording blueprint with make_active=True.

See Why is my blueprint ignored?.

How a recording blueprint is stored

Under the hood, recording blueprints are data. They are structured using the same Entity Component System as your recordings, but with blueprint-specific archetypes and a separate blueprint timeline. This architecture provides several advantages:

  • Anything you modify in the Viewer can be saved and shared as a blueprint file
  • Recording blueprints can be produced programmatically using just the Rerun SDK without depending on the Viewer; see Configure a recording layout from code
  • Blueprint data uses the same component types as logged data, so blueprint overrides can set any component a visualizer reads
  • Debugging tools for Rerun data can inspect blueprint state just like recording data

Viewer operation

The Viewer is designed to be deterministic. Every frame, the Viewer:

  1. Takes the current recording blueprint and the active recording
  2. Queries container and view archetypes from the blueprint at the current blueprint timeline revision
  3. Uses those view specifications to query the data needed from the recording
  4. Renders the results
  5. Queues any user interactions as new blueprint events on the blueprint timeline

This means the Viewer output is a deterministic function of the blueprint and the recording, with minimal persisted state between frames.

Configure a recording layout from code

Use the blueprint API to define a recording’s views, containers, and settings from code. Send it with your recording or save it for later use.

You can define a recording blueprint in Python or Rust.

This section configures the viewport for individual recordings. To configure catalog table columns or embedded segment previews instead, see Configure table layouts and segment previews.

Most of this section uses Python. For Rust, see Rust Blueprint API below. C++ has no Blueprint API yet, but can load blueprint files. If your recording blueprint has no effect, see Why is my blueprint ignored?.

Getting started example

This walkthrough demonstrates the Blueprint API using stock market data. We'll start simple and progressively build more complex layouts. It logs synthetic prices; the blueprint_stocks example fetches real ones from Yahoo Finance.

Install the Python SDK and NumPy in a Python environment.

Basic script

Create stocks.py, which logs five days of prices for five stocks:

import datetime as dt

import numpy as np

import rerun as rr
import rerun.blueprint as rrb

brand_colors = {
    "AAPL": 0xA2AAADFF,
    "AMZN": 0xFF9900FF,
    "GOOGL": 0x34A853FF,
    "META": 0x0081FBFF,
    "MSFT": 0xF14F21FF,
}

company_info = {
    "AAPL": ("Apple Inc.", "Consumer Electronics"),
    "AMZN": ("Amazon.com, Inc.", "Internet Retail"),
    "GOOGL": ("Alphabet Inc.", "Internet Content & Information"),
    "META": ("Meta Platforms, Inc.", "Internet Content & Information"),
    "MSFT": ("Microsoft Corporation", "Software - Infrastructure"),
}


def style_plot(symbol: str) -> rr.SeriesLines:
    return rr.SeriesLines(colors=brand_colors[symbol], names=symbol)


def style_peak(symbol: str) -> rr.SeriesPoints:
    return rr.SeriesPoints(
        colors=0xFF0000FF, names=f"{symbol} (peak)", markers="up"
    )


def info_card(symbol: str) -> rr.TextDocument:
    name, industry = company_info[symbol]
    markdown = f"- **Name**: {name}\n- **Industry**: {industry}\n"
    return rr.TextDocument(markdown, media_type=rr.MediaType.MARKDOWN)


symbols = list(brand_colors)
start_date = dt.date(2024, 3, 18)
dates = [start_date + dt.timedelta(days=i) for i in range(5)]

rr.init("rerun_example_blueprint_stocks", spawn=True)

rng = np.random.default_rng(0)

for symbol in symbols:
    rr.log(f"stocks/{symbol}/info", info_card(symbol), static=True)

    for day in dates:
        rr.log(f"stocks/{symbol}/{day}", style_plot(symbol), static=True)
        rr.log(f"stocks/{symbol}/peaks/{day}", style_peak(symbol), static=True)

        # One price every 5 minutes from market open (9:30) to close (16:00).
        prices = 100.0 + np.cumsum(rng.normal(size=78))
        peak = int(np.argmax(prices))

        for i, price in enumerate(prices):
            rr.set_time("time", duration=dt.timedelta(minutes=5 * i))
            rr.log(f"stocks/{symbol}/{day}", rr.Scalars(price))
            if i == peak:
                rr.log(f"stocks/{symbol}/peaks/{day}", rr.Scalars(price))

Run the script:

python stocks.py

Without a recording blueprint, the heuristic layout may not be ideal:

Heuristic layout without a blueprint: one crowded stocks plot and five text views with company info in a grid

Creating a simple view

Add a recording blueprint to the end of the script:

# Create a single chart for all the AAPL data:
blueprint = rrb.Blueprint(
    rrb.TimeSeriesView(name="AAPL", origin="/stocks/AAPL"),
)
rr.send_blueprint(blueprint)

The origin parameter scopes the view to a specific subtree. Now you'll see just the AAPL data:

Time series view showing only AAPL stock prices for five days, with red peak markers, next to the blueprint and selection panels

Send a recording blueprint

Use rr.send_blueprint() to send a recording blueprint to the Viewer. The active recording blueprint is shown immediately; a default is used when no other recording blueprint is active or when you reset to it. Use make_active and make_default to control those roles. The default_blueprint parameter can also supply a default when spawning or connecting.

For example, a program can send a different layout when it detects an issue:

if robot_error:
    # Show diagnostic views for debugging
    blueprint = rrb.Grid(
        rrb.Spatial3DView(name="Robot view", origin="/world/robot"),
        rrb.TextLogView(name="Error Logs", origin="/diagnostics"),
        rrb.TimeSeriesView(name="Sensor Data", origin="/sensors"),
    )
    rr.send_blueprint(blueprint, make_active=True)

Controlling panel state

You can control which panels are visible:

# Create a single chart and collapse the selection and time panels:
blueprint = rrb.Blueprint(
    rrb.TimeSeriesView(name="AAPL", origin="/stocks/AAPL"),
    rrb.BlueprintPanel(state="expanded"),
    rrb.SelectionPanel(state="collapsed"),
    rrb.TimePanel(state="collapsed"),
)
rr.send_blueprint(blueprint)
AAPL time series view filling the Viewer with the selection and time panels collapsed

Combining multiple views

Use containers to combine multiple views. The Vertical container stacks views, and row_shares controls relative sizing:

# Create a vertical layout of an info document and a time series chart
blueprint = rrb.Blueprint(
    rrb.Vertical(
        rrb.TextDocumentView(name="Info", origin="/stocks/AAPL/info"),
        rrb.TimeSeriesView(name="Chart", origin="/stocks/AAPL"),
        row_shares=[1, 4],
    ),
    rrb.BlueprintPanel(state="expanded"),
    rrb.SelectionPanel(state="collapsed"),
    rrb.TimePanel(state="collapsed"),
)
rr.send_blueprint(blueprint)
Vertical layout with a small Info text view for Apple Inc. stacked above a larger AAPL price chart

Containers and tabs

There are four container kinds: rrb.Horizontal, rrb.Vertical, rrb.Grid, and rrb.Tabs. Use active_tab to choose which tab is shown first, by index or by name:

tabs = rrb.Blueprint(
    rrb.Tabs(
        rrb.Spatial3DView(name="Scene", origin="/world"),
        rrb.TimeSeriesView(name="Plots", origin="/metrics"),
        active_tab="Plots",
    )
)

There is no scrollable container yet: all views in a container share the available space. See missing features.

Specifying view contents

The contents parameter provides fine-grained control over what appears in a view. You can include data from multiple sources:

# Create a view with two stock time series
blueprint = rrb.Blueprint(
    rrb.TimeSeriesView(
        name="META vs MSFT",
        contents=[
            "+ /stocks/META/2024-03-19",
            "+ /stocks/MSFT/2024-03-19",
        ],
    ),
    rrb.BlueprintPanel(state="expanded"),
    rrb.SelectionPanel(state="collapsed"),
    rrb.TimePanel(state="collapsed"),
)
rr.send_blueprint(blueprint)
Time series view titled META vs MSFT comparing the two stock price lines, blue for META and orange for MSFT

Filtering with expressions

Content expressions can include or exclude subtrees using wildcards. They can reference $origin and use /** to match entire subtrees:

# Create a chart for AAPL and filter out the peaks:
blueprint = rrb.Blueprint(
    rrb.TimeSeriesView(
        name="AAPL",
        origin="/stocks/AAPL",
        contents=[
            "+ $origin/**",
            "- $origin/peaks/**",
        ],
    ),
    rrb.BlueprintPanel(state="expanded"),
    rrb.SelectionPanel(state="collapsed"),
    rrb.TimePanel(state="collapsed"),
)
rr.send_blueprint(blueprint)
AAPL time series view with the peak markers filtered out, leaving only the daily price lines

See Entity path filter for complete expression syntax.

Programmatic layout generation

Since blueprints are Python code, you can generate them dynamically. This example creates a grid with one row per stock symbol:

# Iterate over all symbols and days to create a comprehensive grid
blueprint = rrb.Blueprint(
    rrb.Vertical(
        contents=[
            rrb.Horizontal(
                contents=[
                    rrb.TextDocumentView(
                        name=f"{symbol}",
                        origin=f"/stocks/{symbol}/info",
                    ),
                ]
                + [
                    rrb.TimeSeriesView(
                        name=f"{day}",
                        origin=f"/stocks/{symbol}/{day}",
                    )
                    for day in dates
                ],
                name=symbol,
            )
            for symbol in symbols
        ]
    ),
    rrb.BlueprintPanel(state="expanded"),
    rrb.SelectionPanel(state="collapsed"),
    rrb.TimePanel(state="collapsed"),
)
rr.send_blueprint(blueprint)
Grid of views with one row per stock symbol (AAPL, AMZN, GOOGL, META, MSFT): an info panel followed by a chart for each of five days

Keep or stop automatic views

With no recording blueprint, or with auto_views enabled, the Viewer creates views using heuristics. A recording blueprint with at least one container or view has auto_views=False by default. With no containers or views, it defaults to True; set rrb.Blueprint(auto_views=False, auto_layout=False) for an empty layout. See Why the Viewer created these views.

Advanced customization

Each view has its own recording blueprint properties. For example:

# Configure a 3D view with custom camera settings
robot_view = rrb.Spatial3DView(
    name="Robot view",
    origin="/world/robot",
    background=[100, 149, 237],  # Light blue
    eye_controls=rrb.EyeControls3D(
        kind=rrb.Eye3DKind.FirstPerson,
        speed=20.0,
    ),
)
# Configure a time series view with custom axis and time ranges
sensor_view = rrb.TimeSeriesView(
    name="Sensor Data",
    origin="/sensors",
    axis_y=rrb.ScalarAxis(range=(-10.0, 10.0), zoom_lock=True),
    plot_legend=rrb.PlotLegend(visible=False),
    time_ranges=[
        rrb.VisibleTimeRange(
            "time",
            start=rrb.TimeRangeBoundary.cursor_relative(seconds=-10.0),
            end=rrb.TimeRangeBoundary.cursor_relative(),
        ),
    ],
)

See the view guides, including 3D camera settings and time series axes and ranges. For component defaults and overrides shared by views, see Customize views.

Saving blueprints from code

You can save programmatically-created blueprints to .rbl files:

"""Craft a blueprint with the python API and save it to file."""

import sys

import rerun.blueprint as rrb

path_to_rbl = sys.argv[1]

blueprint = rrb.Blueprint(
    rrb.TimeSeriesView(name="AAPL", origin="/stocks/AAPL"),
)

# Save to a file
blueprint.save("rerun_example_blueprint_stocks", path_to_rbl)

Loading blueprints from any language

Existing recording blueprint files (e.g. created with the Python SDK or saved from the viewer) can be programmatically loaded into Rerun. This is particularly useful when using the C++ SDK, since the Blueprint API is not available for C++:

"""
Query and display the first 10 rows of a recording in a dataframe view.

The blueprint is being loaded from an existing blueprint recording file.
"""

# python dataframe_view_query_external.py /tmp/dna.rrd /tmp/dna.rbl

import sys

import rerun as rr

path_to_rrd = sys.argv[1]
path_to_rbl = sys.argv[2]

rr.init("rerun_example_dataframe_view_query_external", spawn=True)

rr.log_file_from_path(path_to_rrd)
rr.log_file_from_path(path_to_rbl)

This works using the log_file_from_path API, which allows you to log any file that contains data that Rerun understands — in this case, recording blueprint data.

API reference:

See the Blueprint API Reference for complete details.

Rust blueprint API

Rust has a builder API in the rerun::blueprint module. It supports containers (Horizontal, Vertical, Grid, Tabs), all view classes, view origin and contents, component defaults and overrides, and the state of the panels. Most view-specific properties (for example eye controls or visible time ranges) are only available in Python for now.

This example is adapted from examples/rust/blueprint:

//! Lay out two 2D views in a grid, with per-view contents, defaults, and overrides.

use rerun::blueprint::components::PanelState;
use rerun::blueprint::{
    Blueprint, ContainerLike, Grid, SelectionPanel, Spatial2DView,
};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let blueprint = Blueprint::new(Grid::new(vec![
        ContainerLike::from(
            Spatial2DView::new("Image and first rect")
                .with_origin("/")
                .with_contents(["image", "rect/0"]),
        ),
        ContainerLike::from(
            Spatial2DView::new("Everything")
                .with_origin("/")
                .with_contents(["/**"])
                .with_defaults(
                    &rerun::Boxes2D::update_fields().with_radii([2.0]),
                )
                .with_override(
                    "rect/0",
                    &rerun::Boxes2D::update_fields().with_radii([1.0]),
                ),
        ),
    ]))
    .with_selection_panel(SelectionPanel::from_state(PanelState::Collapsed));

    let rec =
        rerun::RecordingStreamBuilder::new("rerun_example_blueprint_grid")
            .with_blueprint(blueprint)
            .spawn()?;

    rec.log(
        "rect/0",
        &rerun::Boxes2D::from_mins_and_sizes([(16.0, 16.0)], [(64.0, 64.0)]),
    )?;

    Ok(())
}

with_blueprint makes the recording blueprint active immediately. with_default_blueprint only sets it as the default, which the user gets when they reset the recording blueprint. To send a recording blueprint to a stream that already exists, use blueprint.send(&rec, BlueprintActivation { make_active: true, make_default: true }).

YouTube overview

For a video introduction, watch the blueprints overview on YouTube.

The code below is a simplified version of the video's example: it sends each recording blueprint in turn, so running it shows only the last one.
"""Send a series of blueprints that combine many kinds of views in a grid."""

import math

import numpy as np
from numpy.random import default_rng

import rerun as rr
import rerun.blueprint as rrb

rr.init("rerun_example_blueprint_overview", spawn=True)

rr.set_time("time", sequence=0)
rr.log(
    "log/status", rr.TextLog("Application started.", level=rr.TextLogLevel.INFO)
)
rr.set_time("time", sequence=5)
rr.log("log/other", rr.TextLog("A warning.", level=rr.TextLogLevel.WARN))
for i in range(10):
    rr.set_time("time", sequence=i)
    rr.log(
        "log/status",
        rr.TextLog(f"Processing item {i}.", level=rr.TextLogLevel.INFO),
    )

# Create a text view that displays all logs.
blueprint = rrb.Blueprint(
    rrb.TextLogView(origin="/log", name="Text Logs"),
    rrb.SelectionPanel(state="expanded"),
    collapse_panels=True,
)

rr.send_blueprint(blueprint)

# Create a spiral of points:
n = 150
angle = np.linspace(0, 10 * np.pi, n)
spiral_radius = np.linspace(0.0, 3.0, n) ** 2
positions = np.column_stack((
    np.cos(angle) * spiral_radius,
    np.sin(angle) * spiral_radius,
))
colors = np.dstack((
    np.linspace(255, 255, n),
    np.linspace(255, 0, n),
    np.linspace(0, 255, n),
))[0].astype(int)
radii = np.linspace(0.01, 0.7, n)

rr.log("points", rr.Points2D(positions, colors=colors, radii=radii))

# Create a Spatial2D view to display the points.
blueprint = rrb.Blueprint(
    rrb.Spatial2DView(
        origin="/",
        name="2D Scene",
    ),
    collapse_panels=True,
)

rr.send_blueprint(blueprint)

rr.log(
    "points",
    rr.GeoPoints(
        lat_lon=[[47.6344, 19.1397], [47.6334, 19.1399]],
        radii=rr.Radius.ui_points(20.0),
    ),
)

# Create a map view to display the chart.
blueprint = rrb.Blueprint(
    rrb.MapView(
        origin="points",
        name="MapView",
        zoom=16.0,
        background=rrb.MapProvider.OpenStreetMap,
    ),
    collapse_panels=True,
)

rr.send_blueprint(blueprint)

blueprint = rrb.Blueprint(
    rrb.Grid(
        rrb.MapView(
            origin="points",
            name="MapView",
            zoom=16.0,
            background=rrb.MapProvider.OpenStreetMap,
        ),
        rrb.Spatial2DView(
            origin="/",
            name="2D Scene",
        ),
        rrb.TextLogView(origin="/log", name="Text Logs"),
    ),
    rrb.TimePanel(state="expanded"),
    rrb.BlueprintPanel(state="expanded"),
    collapse_panels=True,
)

rr.send_blueprint(blueprint)

rr.log("bar_chart", rr.BarChart([8, 4, 0, 9, 1, 4, 1, 6, 9, 0]))

rng = default_rng(12345)
positions = rng.uniform(-5, 5, size=[50, 3])
colors = rng.uniform(0, 255, size=[50, 3])
radii = rng.uniform(0.1, 0.5, size=[50])

rr.log("3dpoints", rr.Points3D(positions, colors=colors, radii=radii))

tensor = rng.integers(0, 256, (32, 60, 80, 3), dtype=np.uint8)
rr.log("tensor", rr.Tensor(tensor, dim_names=("batch", "x", "y", "channel")))

rr.log(
    "markdown",
    rr.TextDocument(
        """
# Hello Markdown!
[Click here to see the raw text](recording://markdown:Text).
"""
    ),
)

rr.log(
    "trig/sin",
    rr.SeriesLines(colors=[255, 0, 0], names="sin(0.01t)"),
    static=True,
)
for t in range(int(math.pi * 4 * 100.0)):
    rr.set_time("time", sequence=t)
    rr.set_time("timeline1", duration=t)
    rr.log("trig/sin", rr.Scalars(math.sin(float(t) / 100.0)))

blueprint = rrb.Blueprint(
    rrb.Grid(
        rrb.MapView(
            origin="points",
            name="MapView",
            zoom=16.0,
            background=rrb.MapProvider.OpenStreetMap,
        ),
        rrb.Spatial2DView(
            origin="/",
            name="2D Scene",
        ),
        rrb.TextLogView(origin="/log", name="Text Logs"),
        rrb.BarChartView(origin="bar_chart", name="Bar Chart"),
        rrb.Spatial3DView(
            origin="/3dpoints",
            name="3D Scene",
            # Set the background color to light blue.
            background=[100, 149, 237],
            # Configure the eye controls.
            eye_controls=rrb.EyeControls3D(
                kind=rrb.Eye3DKind.FirstPerson,
                speed=20.0,
            ),
        ),
        rrb.TensorView(
            origin="tensor",
            name="Tensor",
        ),
        rrb.TextDocumentView(origin="markdown", name="Markdown example"),
        rrb.TimeSeriesView(
            origin="/trig",
            # Set a custom Y axis.
            axis_y=rrb.ScalarAxis(range=(-1.0, 1.0), zoom_lock=True),
            # Configure the legend.
            plot_legend=rrb.PlotLegend(visible=False),
            # Set different time ranges for different timelines.
            time_ranges=[
                # Sliding window around the time cursor on the first timeline.
                rrb.VisibleTimeRange(
                    "time",
                    start=rrb.TimeRangeBoundary.cursor_relative(seq=-100),
                    end=rrb.TimeRangeBoundary.cursor_relative(),
                ),
                # From a fixed time to the end of the second timeline.
                rrb.VisibleTimeRange(
                    "timeline1",
                    start=rrb.TimeRangeBoundary.absolute(seconds=300.0),
                    end=rrb.TimeRangeBoundary.infinite(),
                ),
            ],
        ),
    ),
    collapse_panels=True,
)

rr.send_blueprint(blueprint)

Why is my blueprint ignored?

Check these common causes:

  • Different application ID. For directly streamed or imported recordings, a recording blueprint applies to recordings with the same application ID. rr.send_blueprint uses the application ID of the recording stream it is sent on, so send it on the same stream as your data.
  • make_active=False. rr.send_blueprint(…, make_active=False, make_default=True) only sets the default recording blueprint. It becomes active only if no other recording blueprint is active, or when the user resets the recording blueprint. The same is true for the default_blueprint parameter of rr.spawn, rr.connect_grpc, rr.save, and rr.serve_grpc.
  • The Viewer keeps your edits. The native Viewer remembers the recording blueprint of each application ID, including changes you made in the UI, across restarts. A default recording blueprint does not replace it. Use "Reset to default blueprint" from the View menu or command palette, or send the recording blueprint with make_active=True (the default for rr.send_blueprint).
  • Wrong override paths. The keys of overrides={…} must be full entity paths, starting at the root. $origin and wildcards like /** are not supported there.
  • Wrong origin or contents. If a view is empty, check that the entity path filter matches the entity paths you log to. Select the view in the Viewer to see its query.

Did the Viewer create views you did not ask for? See Why the Viewer created these views.