rerun icon indicating copy to clipboard operation
rerun copied to clipboard

`rr.legacy_notebook_show()` does not work

Open eric-heiden opened this issue 2 months ago • 2 comments

Describe the bug The rr.legacy_notebook_show() doesn't appear to work. It presents a view of a recording that has no streamed objects in them, the number of bytes encoded in base64 for the recording may be too short.

To Reproduce Steps to reproduce the behavior:

  1. Download the cube.ipynb from https://github.com/rerun-io/rerun/blob/main/examples/notebook/notebook/cube.ipynb
  2. Modify the third code cell to the following:
rr.init("rerun_example_cube")

STEPS = 100
twists = math.pi * np.sin(np.linspace(0, math.tau, STEPS)) / 4
for t in range(STEPS):
    rr.set_time("step", sequence=t)
    cube = build_color_grid(10, 10, 10, twist=twists[t])
    rr.log("cube", rr.Points3D(cube.positions, colors=cube.colors, radii=0.5))

rr.legacy_notebook_show()

Expected behavior The rerun web viewer should show the particles in the 3D view as expected when calling the above cell with rr.notebook_show() instead of rr.legacy_notebook_show().

Screenshots

Image

The recording bytes may be shorter than expected, I think saving this recording to a rrd file yields something with 2x more bytes than what is reported in the viewer.

Backtrace

Desktop (please complete the following information):

  • OS: Windows 11, same issue on Ubuntu 22.4

Rerun version 0.27.0 but also occurs on newer versions

Additional context

eric-heiden avatar Nov 12 '25 22:11 eric-heiden

Thanks for filing an issue! It should obviously still work, but as the name implies legacy_notebook_show was on the way out, do you depend on it?

Wumpf avatar Nov 13 '25 07:11 Wumpf

Yes, my hope is I can store the Rerun view in a Jupyter notebook as static HTML so that I can include those notebooks in a statically hosted documentation via nbsphinx. That way the views remain available without having to run a Jupyter instance, I only need to host the documentation page on some web server.

eric-heiden avatar Nov 13 '25 18:11 eric-heiden