# Silent error / hanging raw.plot()

**URL:** <https://mne.discourse.group/t/silent-error-hanging-raw-plot/4648>\
**Category:** Support & Discussions\
**Tags:** visualization, qt-browser\
**Created:** [March 30, 2022, 5:32am UTC](https://mne.discourse.group/t/silent-error-hanging-raw-plot/4648 "2022-03-30T05:32:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![szerfas1](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/szerfas1/32/1156_2.png) [@szerfas1](https://mne.discourse.group/u/szerfas1)\
**Post date:** [March 30, 2022, 5:32am UTC](https://mne.discourse.group/t/silent-error-hanging-raw-plot/4648/1 "2022-03-30T05:32:06Z")

</div>

- MNE version: 1.o
- operating system: macOS Monterey

I’m seeing a silent error when I attempt to run raw.plot(). I’m afraid I’ve not been able to isolate it much more than “it works on some data and not on others.”

I want to use raw.plot() to explore and mark data for rejection on data I’m pulling from the four raw columns of ~6 total minutes of data sampled at 256 Hz produced by a Muse pulled from here:

When I do, I get the below indefinitely.

 ![image](https://global.discourse-cdn.com/free1/uploads/mne/original/2X/5/58b44b44000181c91fbae6ab162127ee04241a51.jpeg)

This works without issue on another data set I’m using produced from a Neurosity Crown.

Happy to look into other variables (e.g., changes in environment) to try and isolate the issue if you have suggestions. I know this isn’t much to go off of, but I’m afraid there’s not error or warning message anywhere. All I have is:

```python
Using qt as 2D backend.
Opening raw-browser...
For Dark-Mode "qdarkstyle" has to be installed! You can install it with `pip install qdarkstyle`
qt.qpa.drawing: Layer-backing can not be explicitly controlled on 10.14 when built against the 10.14 SDK
Using pyopengl with version 3.1.6

```

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [March 30, 2022, 7:01am UTC](https://mne.discourse.group/t/silent-error-hanging-raw-plot/4648/2 "2022-03-30T07:01:40Z")

</div>

Hello @szerfas1, there is a known problem when using the new GUI from an interactive Python session. Please see the following posting for a solution:

> [@Pybrain: M/EEG analysis with MNE Python (Problem to visualize the raw data)](https://mne.discourse.group/t/pybrain-m-eeg-analysis-with-mne-python-problem-to-visualize-the-raw-data/4644/2):
>
> Hello @alexandreokano and welcome to the forum! This is a known issue with the new visualization GUI, which we are tracking here: The easiest fix is either to run %matplotlib qt in a single notebook cell early on, or to add block=True to the plotting calls, like this: raw.plot(block=True) Best wishes Richard

Please let me know if that resolved the issue for you!

---

<div class="post-metadata">

**Author:** ![szerfas1](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/szerfas1/32/1156_2.png) [@szerfas1](https://mne.discourse.group/u/szerfas1)\
**Post date:** [March 30, 2022, 3:36pm UTC](https://mne.discourse.group/t/silent-error-hanging-raw-plot/4648/3 "2022-03-30T15:36:07Z")

</div>

Thank you Richard! An instant fix 😄

---

<div class="post-metadata">

**Author:** ![richard](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/richard/32/15_2.png) [@richard](https://mne.discourse.group/u/richard)\
**Post date:** [April 5, 2022, 10:18am UTC](https://mne.discourse.group/t/silent-error-hanging-raw-plot/4648/4 "2022-04-05T10:18:56Z")

</div>

FYI this has now been resolved in the latest version of `mne-qt-browser`, which is also included in our updated installers.
