Issues in plot_sensors_connectivity

  • MNE version: e.g. 0.24.1
  • operating system: e.g. macOS 12.1

mne.sys_info() gives following:
Platform: macOS-10.16-x86_64-i386-64bit
Python: 3.9.7 (default, Sep 16 2021, 08:50:36) [Clang 10.0.0 ]
Executable: /Users/super/opt/anaconda3/bin/python
CPU: i386: 10 cores
Memory: 32.0 GB

mne: 0.24.1
numpy: 1.20.3 {blas=mkl_rt, lapack=mkl_rt}
scipy: 1.7.1
matplotlib: 3.4.3 {backend=Qt5Agg}

sklearn: 0.24.2
numba: 0.54.1
nibabel: Not found
nilearn: Not found
dipy: Not found
cupy: Not found
pandas: 1.3.4
mayavi: 4.7.4
pyvista: 0.33.3 {OpenGL 4.1 Metal - 76.3 via Apple M1 Pro}
pyvistaqt: 0.7.0
ipyvtklink: Not found
vtk: 9.1.0
PyQt5: 5.13.2
ipympl: Not found
mne_qt_browser: Not found
pooch: Not found

Trying the code:
mne.viz.plot_sensors_connectivity(
epochs.info,
con.get_data(output=‘dense’)[:, :, 0])

Following error is given :
The Mayavi 3D backend is deprecated in 0.24 and will be removed in the next version of MNE-Python. Use the pyvistaqt or notebook backends instead
mne.viz.plot_sensors_connectivity(
qt.qpa.window: <QNSWindow: 0x7f77749487d0; contentView=<QNSView: 0x7f77749483c0; QCocoaWindow(0x600001457180, window=QWidgetWindow(0x600004567a80, name=“QMainWindowClassWindow”))>> has active key-value observers (KVO)! These will stop working now that the window is recreated, and will result in exceptions when the observers are removed. Break in QCocoaWindow::recreateWindowIfNeeded to debug.

Request to please help with this. Thanks.

:question: If you have a question or issue with MNE-Python, please include the following info:

  • MNE version: e.g. 0.24.0
  • operating system: e.g. macOS 12 / Windows 10 / Ubuntu 18.04

:page_facing_up: Please also provide relevant code snippets – ideally a minimal working example (MWE).

:fountain_pen: To get the correct formatting, paste your Python code, then select it, and click on the Preformatted text toolbar button.

:no_mobile_phones: Please avoid sharing screenshots of code and error messages! Screenshots are difficult to work with especially on mobile devices; they don’t allow others to copy code and other text; and they don’t show up in the search.

:point_right: :point_right: :point_right: Please edit or remove the above text before submitting your posting. :point_left: :point_left: :point_left:

The issue is now resolved. Thanks.

I would like to know if there is any detailed tutorial to follow to understand MNE connectivity??