Can't access VTK classes or methods in python

Hello all,

I’m having a strange issue using VTK in python. I have created a conda environment and installed VTK 8.1 from the anaconda channel. In VScode, I’ve set the python interpreter to this conda env, and can import the vtk module (import vtk).

However, when I type vtk. I expect all the classes and methods to pop up like what I’ve seen in tutorials. However I get this:

Apologies if this is a silly error, I can’t seem to find any reason why the package has imported like this.


Update: I fixed this by doing

import vtk
from vtk.vtkCommonCore import vtkObject

that seemed to fix the autocomplete/suggestion problems.