# Certain plot functions are not getting stopped in Jupyter Notebook

**URL:** <https://mne.discourse.group/t/certain-plot-functions-are-not-getting-stopped-in-jupyter-notebook/6147>\
**Category:** Support & Discussions\
**Tags:** eeg, visualization\
**Created:** [January 4, 2023, 6:29am UTC](https://mne.discourse.group/t/certain-plot-functions-are-not-getting-stopped-in-jupyter-notebook/6147 "2023-01-04T06:29:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mukil](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@Mukil](https://mne.discourse.group/u/Mukil)\
**Post date:** [January 4, 2023, 6:29am UTC](https://mne.discourse.group/t/certain-plot-functions-are-not-getting-stopped-in-jupyter-notebook/6147/1 "2023-01-04T06:29:59Z")

</div>

Plots such as `mne.viz.plot_events`, `ica.plot_components` are not getting stopped in Jupyter notebook even after closing the plots in GUI. To stop it, I always have to forcefully stop by pressing ‘Interrupt the Kernal’ in the Jupyter Notebook.

I am using mne 1.2.3 with python 3.8.15. Is there any workaround?

Thank you in advance.

---

<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:** [January 4, 2023, 7:45am UTC](https://mne.discourse.group/t/certain-plot-functions-are-not-getting-stopped-in-jupyter-notebook/6147/2 "2023-01-04T07:45:06Z")

</div>

Can you please post the output of

```python
import mne
mne.sys_info()

```

Thanks!

---

<div class="post-metadata">

**Author:** ![Mukil](https://avatars.discourse-cdn.com/v4/letter/m/9f8e36/32.png) [@Mukil](https://mne.discourse.group/u/Mukil)\
**Post date:** [January 4, 2023, 7:53am UTC](https://mne.discourse.group/t/certain-plot-functions-are-not-getting-stopped-in-jupyter-notebook/6147/3 "2023-01-04T07:53:41Z")

</div>

Platform: Linux-5.15.0-56-generic-x86\_64-with-glibc2.10  
Python: 3.8.15 | packaged by conda-forge | (default, Nov 22 2022, 08:49:35) [GCC 10.4.0]  
Executable: /home/ril/micromamba/envs/mne/bin/python  
CPU: x86\_64: 24 cores  
Memory: 31.3 GB

mne: 1.2.3  
numpy: 1.23.5 {OpenBLAS 0.3.21 with 24 threads}  
scipy: 1.4.1  
matplotlib: 3.6.2 {backend=Qt5Agg}

sklearn: 0.24.2  
numba: 0.56.4  
nibabel: 4.0.2  
nilearn: 0.9.2  
dipy: 1.5.0  
openmeeg: Not found  
cupy: Not found  
pandas: 1.5.2  
pyvista: 0.37.0 {OpenGL 4.5.0 NVIDIA 470.161.03 via NVIDIA GeForce RTX 3080/PCIe/SSE2}  
pyvistaqt: 0.9.0  
ipyvtklink: 0.2.2  
vtk: 9.2.2  
qtpy: 2.3.0 {PyQt5=5.15.6}  
ipympl: Not found  
pyqtgraph: 0.12.2  
pooch: v1.6.0

mne\_bids: 0.11.1  
mne\_nirs: Not found  
mne\_features: Not found  
mne\_qt\_browser: 0.4.0  
mne\_connectivity: Not found  
mne\_icalabel: Not found
