itkwidgets icon indicating copy to clipboard operation
itkwidgets copied to clipboard

VtkUnstructuredGrid() is not displaying in Jupyter notebook

Open jlarsen-usgs opened this issue 2 years ago • 3 comments

My Unstructured Grid is not displaying any cell geometries in the itk-vtk-viewer window in jupyter notebook. The vtk file however displays perfectly fine using other software, such as ParaView. Python code:

# Load vtkUnstructuredGrid containing hydraulic conductivity data
reader = vtk.vtkUnstructuredGridReader()
reader.SetFileName("HK.vtk")
reader.Update()
grid = reader.GetOutput()
view(geometries=grid)

Environment Python 3.7.4, Jupyter-notebook 6.0.1 itkwidgets 0.32.1

VTK File HK.zip

Any insight that you have would be helpful. Thank you!

jlarsen-usgs avatar Sep 29 '21 23:09 jlarsen-usgs

Hi @jlarsen-usgs thank you for the nice report! I was able to reproduce locally. There is a JavaScript initialization issue. We will address in 0.33a1.

thewtex avatar Sep 30 '21 20:09 thewtex

@thewtex

Thank you for the prompt response!

jlarsen-usgs avatar Sep 30 '21 20:09 jlarsen-usgs

@thewtex

Has this issue been solved yet? We'd still like to integrate this tool into FloPy's VTK notebooks.

jlarsen-usgs avatar Apr 04 '24 04:04 jlarsen-usgs