# Simple way to disable Data Probe for some modules

**URL:** <https://discourse.slicer.org/t/simple-way-to-disable-data-probe-for-some-modules/10544>\
**Category:** Development\
**Created:** [March 4, 2020, 4:43pm UTC](https://discourse.slicer.org/t/simple-way-to-disable-data-probe-for-some-modules/10544 "2020-03-04T16:43:17Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Sam\_Horvath](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sam_horvath/32/3092_2.png) [@Sam\_Horvath](https://discourse.slicer.org/u/Sam_Horvath)\
**Post date:** [March 4, 2020, 4:55pm UTC](https://discourse.slicer.org/t/simple-way-to-disable-data-probe-for-some-modules/10544/2 "2020-03-04T16:55:08Z")

</div>

slicer.util has this function:

> <https://github.com/Slicer/Slicer/blob/ff1ddf56348592270badea02b0ecddfee23d9c7a/Base/Python/slicer/util.py#L2245>

which you can use with detecting when your module is entered/exited to hide the data probe. This can be done by defining the enter() / exit() functions in your module. See:

> <https://github.com/Slicer/Slicer/blob/2b25e080bce23609710ad87a82030d3fe01c4286/Modules/Scripted/SegmentEditor/SegmentEditor.py#L119>

---

_[View the full topic](https://discourse.slicer.org/t/simple-way-to-disable-data-probe-for-some-modules/10544)._
