# How can i ignore popup

**URL:** <https://discourse.slicer.org/t/how-can-i-ignore-popup/31840>\
**Category:** Development\
**Tags:** python\
**Created:** [September 22, 2023, 7:55am UTC](https://discourse.slicer.org/t/how-can-i-ignore-popup/31840 "2023-09-22T07:55:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![FWSU](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fwsu/32/67257_2.png) [@FWSU](https://discourse.slicer.org/u/FWSU)\
**Post date:** [September 22, 2023, 7:55am UTC](https://discourse.slicer.org/t/how-can-i-ignore-popup/31840/1 "2023-09-22T07:55:55Z")

</div>

I’m studying an auto-segmentation project on Jupyter.  
Is there a way to prevent notification pop-ups or confirmation pop-ups from appearing?  
For example, after segmentation, when trying to save a label, a completion and log pop-up appears. Also, when trying to view another file during work, an OK/Cancel confirmation pop-up appears. I want it to proceed as if it’s okay without any pop-ups

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 22, 2023, 6:33pm UTC](https://discourse.slicer.org/t/how-can-i-ignore-popup/31840/2 "2023-09-22T18:33:49Z")

</div>

You can avoid these popups if you automate the workflow by using logic classes without using any GUI classes. For example, do not launch a Slicer function by simulating button clicks but call those logic methods that the button click triggers (and skip the display of the confirmation popup).

---

<div class="post-metadata">

**Author:** ![FWSU](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/fwsu/32/67257_2.png) [@FWSU](https://discourse.slicer.org/u/FWSU)\
**Post date:** [September 25, 2023, 12:54am UTC](https://discourse.slicer.org/t/how-can-i-ignore-popup/31840/3 "2023-09-25T00:54:50Z")

</div>

Are there any relevant documents or tutorials available?

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [September 26, 2023, 12:49pm UTC](https://discourse.slicer.org/t/how-can-i-ignore-popup/31840/4 "2023-09-26T12:49:33Z")

</div>

The [PerkLab Bootcamp Slicer programming tutorial](https://slicer.readthedocs.io/en/latest/developer_guide/api.html#tutorials) is a good starting point.

You can find Python code snippets for all the commonly needed operations in Slicer in the [script repository](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html). If you cannot find something and Bing Chat / ChatGPT cannot provide useful hints either then you can ask here and we’ll help.
