Back to Rerun

Set Application Blueprint

examples/notebook/notebook/set_application_blueprint.ipynb

0.34.0672 B
Original Source

How to run

sh
pixi run py-build
pixi run py-build-notebook
pixi run -e py jupyter notebook examples/python/notebook/set_application_blueprint.ipynb

Inline viewer

from __future__ import annotations
import os

os.environ["RERUN_NOTEBOOK_ASSET"] = "inline"

import rerun as rr
import rerun.blueprint as rrb
from rerun.notebook import Viewer

Setup a blueprint

rr.init("MY_APP_ID")
rr.log("/entity/path", rr.Points3D([0, 0, 0]))

blueprint = rrb.Spatial3DView(contents="/entity/**", background=[100, 149, 237])
viewer = Viewer(width="auto", height="auto")
viewer.set_application_blueprint("MY_APP_ID", blueprint)
viewer.display()