haesleinhuepf / napari-process-points-and-surfaces

Process and analyze surfaces using vedo in napari.
BSD 3-Clause "New" or "Revised" License
21 stars 4 forks source link

Surface repr html #40

Closed haesleinhuepf closed 1 year ago

haesleinhuepf commented 1 year ago

This allows visualizing surfaces in jupyter notebooks without pain. Full example

image

haesleinhuepf commented 1 year ago

Hi Johannes @jo-mueller ,

would you have some time to review this proposed change? I'm curious if any downstream tools (napari-stress?) could break when introducing the changes here. The major thing is that our surface objects are not longer pure tuples, they are a class that subclasses tuple and provides a _repr_html_ function to make surfaces nicely render in notebooks. I already checked, napari seems fine with it.

Let me know what you think!

Thanks!

Best, Robert