I am getting the error:
TraitError: The 'children' trait of a VBox instance contains an Instance of a TypedTuple which expected a Widget, not the Viewer at '0x2aaab5d0ad00'.
when running the code below in Jupyter Lab
import itkwidgets
import ipywidgets
view = itkwidgets.view(geometries=None, background=[0.0, 0.0, 0.0])
# Headings
heading = ipywidgets.HTML(value="<h1>Heading</h1>")
# Output Widget
widget = ipywidgets.VBox(children = [heading, view])
Below are my versions of packages.
itkwidgets 1.0a16 pypi_0 pypi
ipywidgets 7.6.5 pyhd3eb1b0_1 defaults
When running this locally with
itkwidgets 0.32.0 py38h32f6830_0 conda-forge
this error does not occur. I needed to update to latest itkwidgets
version due to issue with widgets not showing in Jupyter Lab. How can I fix this issue.
Not sure if it matters, but in my application, I will be updating the geometries
variable often.