How to use viz.Brain from raw data ?

I would like to create a streamlit app presenting my team’s project (we classified EEG motor execution data, 4 classes with machine learning). I would like to expand on the visualization since that app will be addressed mainly to people with little to no prior knowledge of brain science.

The viz.Brain tool seems absolutely amazing but I have no idea, even after reading MNE’s tutorial on the matter. When I inspect the sample directory from MNE, which is the one used to demonstrate viz.Brain’s ability, I see .log, .stc, .dip, .cov and .fif files. I’m only familiar with the later.

Here is my question. Is it possible to use viz.Brain based on a .fif file only ? If so, how ?
If not, where should I go from there ?

if you have STC (source time-course) files/objects, then my_stc.plot() will create and return an instance of mne.viz.Brain. Another option is mne.viz.plot_source_estimates() which is what is recommended if you read the docstring for viz.Brain. Does that answer your question?

It does precisely ! I would have love to have the viz.brain visuals for my audience but I understand that with my data it’s not possible. Thank you.