I have a simple mne script, named with data_check.py, to plot and browse through the raw MEG/EEG data. The script contains these lines:
#!/usr/bin/env python3 # -*- coding: utf-8 -*- import mne raw = mne.io.read_raw_fif('file_name.fif', preload=True) raw.plot()
When running the code in Spyder IDE, it works perfectly fine and I can browse through the plot. But when running the same script directly in terminal as:
$ python data_check.py
The plots initiates but closes within a second automaticaly with a message
Using qt as 2D backend.
I also tried it as:
$ python -c "import mne; raw = mne.io.read_raw_fif('file_name.fif', preload=True); raw.plot()"
But it also initiates and closes within a second automaticaly with the same message.
- MNE version: 1.5.1
- operating system: Ubuntu 20.04.6 LTS (64 bit)
Could someone help me, how to resolve it.
Thanks a lot.