# FNIRS Tutorial - Does not display visualization of 3D Montage

**URL:** <https://mne.discourse.group/t/fnirs-tutorial-does-not-display-visualization-of-3d-montage/9062>\
**Category:** Support & Discussions\
**Tags:** preprocessing, visualization\
**Created:** [July 11, 2024, 5:22pm UTC](https://mne.discourse.group/t/fnirs-tutorial-does-not-display-visualization-of-3d-montage/9062 "2024-07-11T17:22:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![akshayakirithy](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@akshayakirithy](https://mne.discourse.group/u/akshayakirithy)\
**Post date:** [July 11, 2024, 5:22pm UTC](https://mne.discourse.group/t/fnirs-tutorial-does-not-display-visualization-of-3d-montage/9062/1 "2024-07-11T17:22:36Z")

</div>

- 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.

> **[Preprocessing functional near-infrared spectroscopy (fNIRS) data — MNE 1.11.0...](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)

---

<div class="post-metadata">

**Author:** ![SBeumer](https://avatars.discourse-cdn.com/v4/letter/s/f0a364/32.png) [@SBeumer](https://mne.discourse.group/u/SBeumer)\
**Post date:** [July 17, 2024, 12:37pm UTC](https://mne.discourse.group/t/fnirs-tutorial-does-not-display-visualization-of-3d-montage/9062/2 "2024-07-17T12:37:39Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![NK221088](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/nk221088/32/3620_2.png) [@NK221088](https://mne.discourse.group/u/NK221088)\
**Post date:** [August 28, 2025, 12:52pm UTC](https://mne.discourse.group/t/fnirs-tutorial-does-not-display-visualization-of-3d-montage/9062/3 "2025-08-28T12:52:28Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![AbbieM](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@AbbieM](https://mne.discourse.group/u/AbbieM)\
**Post date:** [January 21, 2026, 4:49pm UTC](https://mne.discourse.group/t/fnirs-tutorial-does-not-display-visualization-of-3d-montage/9062/4 "2026-01-21T16:49:12Z")

</div>

I’m having the same issues. I have previously been able to do this but it isn’t working anymore. Were you able to find the fix for this?
