`rr.legacy_notebook_show()` does not work
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:
- Download the cube.ipynb from https://github.com/rerun-io/rerun/blob/main/examples/notebook/notebook/cube.ipynb
- 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
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
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?
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.