# 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:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![giovform](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/giovform/32/4687_2.png) [@giovform](https://discourse.slicer.org/u/giovform)\
**Post date:** [March 4, 2020, 4:43pm UTC](https://discourse.slicer.org/t/simple-way-to-disable-data-probe-for-some-modules/10544/1 "2020-03-04T16:43:17Z")

</div>

What would a good way to disable the Data Probe for some specific modules? Is there a utility function for that? Thank you!

---

<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>

---

<div class="post-metadata">

**Author:** ![giovform](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/giovform/32/4687_2.png) [@giovform](https://discourse.slicer.org/u/giovform)\
**Post date:** [March 4, 2020, 4:57pm UTC](https://discourse.slicer.org/t/simple-way-to-disable-data-probe-for-some-modules/10544/3 "2020-03-04T16:57:09Z")

</div>

> [@Sam\_Horvath](#):
>
> def enter(self):

Thank you! Very simple.

---

<div class="post-metadata">

**Author:** ![Tokai](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tokai/32/4851_2.png) [@Tokai](https://discourse.slicer.org/u/Tokai)\
**Post date:** [March 25, 2020, 8:45am UTC](https://discourse.slicer.org/t/simple-way-to-disable-data-probe-for-some-modules/10544/4 "2020-03-25T08:45:34Z")

</div>

> [@Sam\_Horvath](#):
>

In the module panel you can disable and hide the help and acknowledgement section. Similarly for a active module, lets say ‘Landmarkregistration’ module, I want to hide the ‘local refinement’ and ‘Registration’, two collapsible frames. How can I do that?  
I understand somehow I have to find the name of those the widgets and then make visible false. But i could not find a way to find the names of those items.
