An elegant Python interface for visualization on the web platform to interactively generate insights into multidimensional images, point sets, and geometry.
Hi, I'm trying to embed the created viewer snippet in an HTML, but when we try to do this the axes don't preserve its state, which needs to be False in our case. I'm attaching a reproducible example of what we're doing and some images of the behavior. Do you know if it's possible to preserve this property after exporting it to HTML?
I'm using version 0.32.6.
import vtk
from itkwidgets import view
from ipywidgets import embed
sphere = vtk.vtkSphereSource()
sphere.SetRadius(1)
sphere.Update()
viewer = view(
geometries=sphere.GetOutput(),
ui_collapsed=True,
axes=False,
background=(255,255,255),
)
snippet = embed.embed_snippet(viewer)
html = embed.html_template.format(title="", snippet=snippet)
with open("index.html","w") as f:
f.write(html)
Hi, I'm trying to embed the created viewer snippet in an HTML, but when we try to do this the axes don't preserve its state, which needs to be False in our case. I'm attaching a reproducible example of what we're doing and some images of the behavior. Do you know if it's possible to preserve this property after exporting it to HTML? I'm using version 0.32.6.
In Jupyter notebook the widget works fine:
But in html exported we are having this: