Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MNE Sample Data
Hey. New to Python. Just installed MNE. Any reason sample data has not downloaded successfully also as part of the library / package? Thanks
please show code
import os
import numpy as np
import mne
import matplotlib.pyplot as plt

mne.datasets.sample.data_path(path=None, force_update=False, update_path=True, download=True, verbose=None)

sample_data_folder = mne.datasets.sample.data_path()
sample_data_raw_file = os.path.join(sample_data_folder, 'MEG', 'sample',
raw =
One thing stands out: looks like you're missing an import:
from mne.datasets import sample
I suggest you try the sample application here first:

Possibly Related Threads…
Thread Author Replies Views Last Post
  Sample based on the distribution of a feature to create more balanced data set dervast 1 455 Nov-15-2019, 12:25 AM
Last Post: schuler

Forum Jump:

User Panel Messages

Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020