marcomusy / vedo

A python module for scientific analysis of 3D data based on VTK and Numpy
https://vedo.embl.es
MIT License
2.02k stars 264 forks source link

Using vedo with PySimpleGUI #933

Open elizabethcd opened 11 months ago

elizabethcd commented 11 months ago

I have looked through the vedo docs and have not found a way to do this, so I wanted to ask here in case I am missing something. It seems like integration with any kind of GUI for Plotters in vedo is only supported through the qt_widget argument option, as demonstrated in examples/other/qt_window2.py. However, for my project I am using PySimpleGUI, which generally relies on tkinter in the backend. I found a relevant issue on the PySimpleGUI Github, where they discuss how a Canvas element would be a good potential solution, and that vedo would need to be the one to provide some kind of accessible output product for embedding. Is there any way to extract an element from vedo or pass in arguments for which figure/axes to plot onto that could be integrated into other GUI options?

It also seems like other GUI options like streamlit (mentioned in #588 ) are of interest, including potentially website-focused GUI options.

marcomusy commented 11 months ago

Hi @elizabethcd thanks for drawing my attention to pysimplegui, unfortunately at the moment the upstream vtk only supports Qt. About streamlit this is completely different from the above as it's web based, if there is enough interest we could work out a better integration in vedo (but there will always be some limitations..).

rory-bedford commented 10 months ago

Just want to add my support for this feature! We use both streamlit and vedo for neuroscience visualisation software, and would absolutely love to see an integration where we can embed a vedo plot inside a streamlit app!