# Problem with Annotating Raw objects interactively

**URL:** <https://mne.discourse.group/t/problem-with-annotating-raw-objects-interactively/5822>\
**Category:** Support & Discussions\
**Tags:** annotations\
**Created:** [October 27, 2022, 12:09pm UTC](https://mne.discourse.group/t/problem-with-annotating-raw-objects-interactively/5822 "2022-10-27T12:09:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![arioskyag](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/arioskyag/32/2024_2.png) [@arioskyag](https://mne.discourse.group/u/arioskyag)\
**Post date:** [October 27, 2022, 12:09pm UTC](https://mne.discourse.group/t/problem-with-annotating-raw-objects-interactively/5822/1 "2022-10-27T12:09:23Z")

</div>

Hello everyone,  
I am using mne stable version (v1.2) and i am able to load the EEG raw data in edf format.  
I want to add annotations to the raw data interactively.  
fig = raw.plot(duration=10, n\_channels=20, block=True, color=‘blue’)  
fig.fake\_keypress(‘a’)

The plot is shown without errors but I am getting the graphical interface of previous versions and it does not show the UI of the current version that I am using.

 ![annotation_plot](https://global.discourse-cdn.com/free1/uploads/mne/original/2X/c/c5907328613835983a91ea61ab2f2402dc0cbbf5.jpeg)

In the documentation of the stable version the functions are based on buttons, but I can’t find how to change the interface.

 ![annotation_plot_new](https://global.discourse-cdn.com/free1/uploads/mne/original/2X/4/42f6e78f6d98db773dd2415b20843dafb3c3a537.png)

Any idea what could be happends?  
Thank you.

---

<div class="post-metadata">

**Author:** ![mscheltienne](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/mscheltienne/32/827_2.png) [@mscheltienne](https://mne.discourse.group/u/mscheltienne)\
**Post date:** [October 27, 2022, 2:01pm UTC](https://mne.discourse.group/t/problem-with-annotating-raw-objects-interactively/5822/2 "2022-10-27T14:01:56Z")

</div>

Make sure `mne-qt-browser` is installed in your environment.  
If it is and you are still not getting the Qt backend, try to force it with:

```python
from mne.viz import set_browser_backend

set_browser_backend("qt")

[code...]
raw.plot()

```

This command will set the backend for the entire session.

Mathieu

---

<div class="post-metadata">

**Author:** ![arioskyag](https://yyz2.discourse-cdn.com/free1/user_avatar/mne.discourse.group/arioskyag/32/2024_2.png) [@arioskyag](https://mne.discourse.group/u/arioskyag)\
**Post date:** [October 28, 2022, 5:35am UTC](https://mne.discourse.group/t/problem-with-annotating-raw-objects-interactively/5822/3 "2022-10-28T05:35:32Z")

</div>

Thank you so much @mscheltienne  
it is working now.
