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