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

Interactions #5

Open
giiyms opened this issue Jan 3, 2023 · 1 comment
Open

Interactions #5

giiyms opened this issue Jan 3, 2023 · 1 comment

Comments

@giiyms
Copy link

giiyms commented Jan 3, 2023

Hello,

Is there any way to interact with the component?
i.e. if you click a node, it will return the node number to the python code

Thanks

@edsaac
Copy link
Owner

edsaac commented Jan 4, 2023

Not as it is right now.

threejs has room for interactivity (e.g., https://threejs.org/examples/#webgl_interactive_voxelpainter), but some of that functionality is not implemented in pythreejs which is what this component uses.

A better option for interactivity might come from holoviz/panel (check: https://panel.holoviz.org/gallery/demos/VTKInteractive.html), which is another backend that PyVista uses to export the renders as HTML -- which is what streamlit takes as components.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants