FNIRS Tutorial - Does not display visualization of 3D Montage

  • MNE version: e.g. 1.7
  • operating system: Windows 11
  • Python 3.12

I am trying run the code available from the tutorial for the same data.
https://mne.tools/stable/auto_tutorials/preprocessing/70_fnirs_processing.html

Viewing location of sensors over brain surface

Section does not shows the montage. I see a 3D brain popping up, but no sign of channels or any optodes (sensors).

Code mentioned below.

subjects_dir = mne.datasets.sample.data_path() / “subjects”

brain = mne.viz.Brain(
“fsaverage”, subjects_dir=subjects_dir, background=“w”, cortex=“0.5”
)
brain.add_sensors(
raw_intensity.info,
trans=“fsaverage”,
fnirs=[“channels”, “pairs”, “sources”, “detectors”],
)
brain.show_view(azimuth=20, elevation=60, distance=400)

1 Like

Is there any error popping up? I just tried to run the code in MNE 1.7 on Windows 10 going line by line, and for me, it shows the the channels as indicated by the tutorial.

I’m facing the same problems as @akshayakirithy , but I know it worked for me in another virtual environment. However, virtual environments are running on Windows 11. Can you please share your pip list?