Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New API to request userspace-callbacks from interaction events in visualizer #2691

Open
jleibs opened this issue Jul 13, 2023 · 7 comments
Open
Labels
💬 discussion enhancement New feature or request 🐍 Python API Python logging API 🦀 Rust API Rust logging API user-request This is a pressing issue for one of our users

Comments

@jleibs
Copy link
Member

jleibs commented Jul 13, 2023

A recurring request from users is a mechanism for user-interactions such as clicking to generate a callback in user-space code.

Some examples:

  • Click on a point and receive the timepoint + entity-path + instance-id
  • Show an arbitrary list in a UI element and receive an event from the selection

Alternatives:

  • Until this feature is implemented, to accomplish something like this a user would need to create their own custom space-view: Add example for adding custom Space Views #2328 and then send data over a custom out-of-band backchannel, completely independent of Rerun.

TODO:

  • More details on roadmap for this feature
@jleibs jleibs added enhancement New feature or request 🐍 Python API Python logging API 💬 discussion 🦀 Rust API Rust logging API labels Jul 13, 2023
@jaidevshriram
Copy link

Hey! I'd love this feature too. I went through the mentioned PR but it looks like it's meant for Rust and not Python. If there is a pythonic way to create custom space views, I'd appreciate any help. Thanks!

@Wumpf Wumpf added the user-request This is a pressing issue for one of our users label Aug 8, 2023
@Wumpf
Copy link
Member

Wumpf commented Aug 8, 2023

@jaidevshriram yes, the linked PR is sadly Rust only and this is a very heavy-handed way of extending the viewer. This ticket is indeed all about making smaller adjustments from all languages in a more data-driven way :)
Unfortunately, this is a bit further down the line; we're first going to look into more basic control of the viewer layout from code (if you see us talk about blueprint in tickets and on discord that's that)

@karanchahal
Copy link

karanchahal commented Apr 10, 2024

Hello,

If there is a way to expose a javascript library that will enable usage of rerun specific things with custom UI components, that would significantly help in using this tool for custom tools on top of the renderer/viewer etc.

@alik-git
Copy link

Just echoing the need for this feature on my end as well. I'm making a 3D mapping system for robotics that allows you to search for objects in the scene via natural language, and this would help a lot.

See: https://github.com/concept-graphs/concept-graphs

My specific need is: Having something like a text input box with a labelled "search" button, that when filled out and pressed would trigger a callback to our code that performs the search and opens a new view with the desired object, or recolors all the objects in the scene by how relevant they are to the search query.

This would really help people migrate more easily from other options to rerun. Thanks!! Rerun is awesome.

@Erol444
Copy link

Erol444 commented Jun 19, 2024

+1 on user inputs, like buttons/text inputs/sliders (perhaps API could be similar to streamlit one?). OpenCV provides sliders, so I use opencv just for that, and then rerun for visualziation.

@bokorn-bdaii
Copy link

bokorn-bdaii commented Jun 27, 2024

+1 this with python interfaces for mouse over and selection in 2D views (expanding graph nodes) as well as keyboard callbacks.

@Famok
Copy link

Famok commented Aug 15, 2024

I would love that feature for annotating my datasets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💬 discussion enhancement New feature or request 🐍 Python API Python logging API 🦀 Rust API Rust logging API user-request This is a pressing issue for one of our users
Projects
None yet
Development

No branches or pull requests

8 participants