RuntimeError: Could not load any valid 3D backend: pyvista, mayavi, notebook
I tried installing both pyvista and mayavi. When I import them, in my jupyter notebook, I get below error:
ImportError: Failed to load vtkInteractionWidgets: No module named vtkmodules.vtkRenderingCore
Below is my mne.sys_info()
Platform:      Windows-10-10.0.19041-SP0
Python:        3.8.5 (default, Sep  3 2020, 21:29:08) [MSC v.1916 64 bit (AMD64)]
Executable:    C:\Users\harsh\anaconda3\envs\gputensorflow\python.exe
CPU:           Intel64 Family 6 Model 158 Stepping 10, GenuineIntel: 12 cores
Memory:        15.8 GB
mne:           0.23.0
numpy:         1.21.0 {blas=NO_ATLAS_INFO, lapack=lapack}
scipy:         1.6.3
matplotlib:    3.4.2 {backend=module://ipykernel.pylab.backend_inline}
sklearn:       0.24.2
numba:         0.53.1
nibabel:       Not found
nilearn:       Not found
dipy:          Not found
cupy:          Not found
pandas:        1.2.4
mayavi:        Not found
pyvista:       Not found
vtk:           Not found
I am trying to plot sensors connectivity while I have the spectral connectivity parameters:
fmin, fmax = 4., 9.
sfreq = raw.info[‘sfreq’]  # the sampling frequency
tmin = 0.0  # exclude the baseline period
epochs.load_data()
con, freqs, times, n_epochs, n_tapers = spectral_connectivity(
epochs, method=‘pli’, mode=‘multitaper’, sfreq=sfreq, fmin=fmin, fmax=fmax,
faverage=True, tmin=tmin, mt_adaptive=False, n_jobs=1)
plot_sensors_connectivity(epochs.info, connectivity[:, :, 0])