Skip to content

blueprint make_active doesn't work with the web viewer #8741

@Wumpf

Description

@Wumpf

Blueprints sent via send_blueprint arrive just fine but they're not made active, even when

Short repro:

import rerun as rr
import rerun.blueprint as rrb
import numpy as np


blueprint = rrb.Blueprint(rrb.Spatial2DView(origin=f"image", name="test name"))
rr.init("image_viewer")
rr.serve_web(
    open_browser=True,
    web_port=9072,
    ws_port=9073,
)
rr.send_blueprint(blueprint)

image = np.random.randint(0, 256, (96, 96, 3))
rr.log("image", rr.Image(image))

input("Press Enter to exit...")

The viewer evidently received the blueprint and made it the default (send_column by makes the blueprint the default and makes it active) but it doesn't switch to this blueprint unless prompted to do so from the ui.
This does not happen when spawning the native viewer (spawn=True on init).

Curiously, when using rr.init("image_viewer", default_blueprint=blueprint), the blueprint is set as default and visible!

See also https://discord.com/channels/1062300748202921994/1330599362774171768/1330599362774171768

Metadata

Metadata

Assignees

No one assigned

    Labels

    🕸️ webregarding running the viewer in a browser🟦 blueprintThe data that defines our UI🪳 bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions