I tried to ‘import vtk’ and then used the help(vtk), but the slicer crashed. So where can I find the vtk version of my slicer based on
help(VTK)
prints hundreds of thousands of lines of text on the console (all documentation of all its classes), so it takes a good while to complete.
You can get VTK version from from vtk.vtkVersion()
, for example: vtk.vtkVersion().GetVTKMajorVersion()
.