# How to close Data Probe when starting Slicer?

**URL:** <https://discourse.slicer.org/t/how-to-close-data-probe-when-starting-slicer/19066>\
**Category:** Development\
**Tags:** python\
**Created:** [August 5, 2021, 1:03am UTC](https://discourse.slicer.org/t/how-to-close-data-probe-when-starting-slicer/19066 "2021-08-05T01:03:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)\
**Post date:** [August 5, 2021, 1:03am UTC](https://discourse.slicer.org/t/how-to-close-data-probe-when-starting-slicer/19066/1 "2021-08-05T01:03:35Z")

</div>

Dear experts,

I have a question , this option is always expanded every time I start Slicer.

In fact, I don’t use this option often, so I need to close it manually every time.

Is there a way to change the unexpanded state as the default.

Any scripts?

As is shown in this picture.  
 ![捕获](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/1/d173387364c3163e95da9d9120064231ef5ce65e.jpeg)

---

<div class="post-metadata">

**Author:** ![jamesobutler](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jamesobutler/32/7511_2.png) [@jamesobutler](https://discourse.slicer.org/u/jamesobutler)\
**Post date:** [August 5, 2021, 2:06am UTC](https://discourse.slicer.org/t/how-to-close-data-probe-when-starting-slicer/19066/2 "2021-08-05T02:06:03Z")

</div>

You can use the method `setDataProbeVisible`. See here for more details

> [@Simple way to disable Data Probe for some modules](https://discourse.slicer.org/t/simple-way-to-disable-data-probe-for-some-modules/10544/2):
>
> slicer.util has this function: 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:

as part of the application startup script

[https://slicer.readthedocs.io/en/latest/user\_guide/settings.html?highlight=Slicerrc#application-startup-file](https://slicer.readthedocs.io/en/latest/user_guide/settings.html?highlight=Slicerrc#application-startup-file)
