Inline visualtions of vedo plots in ipynb #110
Replies: 6 comments
-
After some more investigations, I could not get it to work in the same manner jae and I had while we tried it as a spike. A consistent way to display interactive vedo graphics inline in ipynb is to create the plotter in the notebook and to collect the vedo objects by calling gus_obj.showable() and calling the plotter directly with the returned objects. See example below.
|
Beta Was this translation helpful? Give feedback.
-
Sounds good. I'd say we can add a function ...
plt = gus.show.notebook_plotter([toshow1, toshow2])
plt.show() in case of multiple plots at once: >>> plt1, plt2, plt3 = gus.show.notebook_plotter(toshow1, toshow2, toshow3)
>>> plotters = gus.show.notebook_plotter(toshow1, toshow2, toshow3)
>>> isinstance(plotters, list)
True |
Beta Was this translation helpful? Give feedback.
-
closing for now |
Beta Was this translation helpful? Give feedback.
-
@clemens-fricke I think we are ready to implement this |
Beta Was this translation helpful? Give feedback.
-
Quick update. Vedo changed how the backend is handled and you can not change it anymore in the plotter call directly. But you can set it globally with Konstantin and I just played around with it and we got it to work with:
The following actually does not work, because k3d can not plot UGrid which is apparently how we export the volume element.
What works is the plotting of 3D Faces...
in regard to splinepy splines showable returns a dicts to plot it you need to do the following:
|
Beta Was this translation helpful? Give feedback.
-
On its way via k3d plotting. PR is open #181 but also needs #171 to be merged. In addition, if you want to use it in conjunction with splinepy the PR tataratat/splinepy#311 needs to be merged. There might be some parts missing, please open an Issue if you find something you need but does not work with this. |
Beta Was this translation helpful? Give feedback.
-
Das ist nur ein nice to have und was Jae und ich schon durch trial und error herrausgefunden haben, funktioniert es auch nicht perfekt out of the box.
Wenn man das richtige vedo backend eingestellt hat (ipyvtk) diese funktionalität müsste auch noch hinzugefügt werden muss bei show das keyword '''close=False''' gesetzt werden und dann auf dem plotter der dann zurück gegeben wird noch mal show() ausführen.
What needs to be done
Beta Was this translation helpful? Give feedback.
All reactions