Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce
rr.notebook_show()
to simplify notebook experience (#5715)
### What As part of adding blueprint support to notebooks, I realized the experience of creating and logging memory recordings felt very incongruous with the normal rerun workflow. I introduced a new mechanism `rr.notebook_show()`, which uses the MemoryRecording behind the scenes, but doesn't require users to be aware of it. All Blueprint types now support `_repr_html_` and show the currently active recording stream. Uncovered several existing sharp-corners with notebooks: - MemoryStream was still generating spurious warnings about dropped messages, which I cleaned up. - The notebook was using random for its identifiers, which, in the case of examples was having its seed reset, leading to duplicate ids in the DOM. Lastly, updated the notebook cube example to use the new style: ![image](https://github.com/rerun-io/rerun/assets/3312232/cc9d354e-2744-4649-be2e-484499bc4f98) ### Checklist * [x] I have read and agree to [Contributor Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and the [Code of Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md) * [x] I've included a screenshot or gif (if applicable) * [x] I have tested the web demo (if applicable): * Using newly built examples: [app.rerun.io](https://app.rerun.io/pr/5715/index.html) * Using examples from latest `main` build: [app.rerun.io](https://app.rerun.io/pr/5715/index.html?manifest_url=https://app.rerun.io/version/main/examples_manifest.json) * Using full set of examples from `nightly` build: [app.rerun.io](https://app.rerun.io/pr/5715/index.html?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json) * [x] The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG * [x] If applicable, add a new check to the [release checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)! - [PR Build Summary](https://build.rerun.io/pr/5715) - [Docs preview](https://rerun.io/preview/c0177a9fb9cb1ef76f2eeba7b65aa7c861da2642/docs) <!--DOCS-PREVIEW--> - [Examples preview](https://rerun.io/preview/c0177a9fb9cb1ef76f2eeba7b65aa7c861da2642/examples) <!--EXAMPLES-PREVIEW--> - [Recent benchmark results](https://build.rerun.io/graphs/crates.html) - [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)
- Loading branch information