module 'mne.viz.backends._notebook' has no attribute '_check_3d_figure'

  • MNE version: e.g. 1.0.1
  • operating system: Windows 10

https://mne.tools/stable/auto_tutorials/clinical/20_seeg.html#sphx-glr-auto-tutorials-clinical-20-seeg-py

AttributeError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_2936/665808986.py in
143 surfaces=[], coord_frame=‘mri’)
144
→ 145 brain = mne.viz.Brain(‘fsaverage’, alpha=0.1, cortex=‘low_contrast’,
146 subjects_dir=subjects_dir, units=‘m’, figure=fig)
147 brain.add_volume_labels(aseg=‘aparc+aseg’, labels=labels)

~\anaconda3\lib\site-packages\mne\viz_brain_brain.py in init(self, subject_id, hemi, surf, title, cortex, alpha, size, background, foreground, figure, subjects_dir, views, offset, show_toolbar, offscreen, interaction, units, view_layout, silhouette, theme, show, block)
433
434 if figure is not None and not isinstance(figure, int):
→ 435 backend._check_3d_figure(figure)
436 if title is None:
437 self._title = subject_id

AttributeError: module ‘mne.viz.backends._notebook’ has no attribute ‘_check_3d_figure’

and “Error displaying widget: model not found”

how did you install mne? are you sure there is no version mismatch on your system?

A

i solved!

conda create --name=mne --channel=conda-forge mne
conda install --name=base nb_conda_kernels