# How to modify the content of "data probe" using python script

**URL:** https://discourse.slicer.org/t/how-to-modify-the-content-of-data-probe-using-python-script/13524
**Category:** Support
**Created:** [September 17, 2020, 11:25am UTC](https://discourse.slicer.org/t/how-to-modify-the-content-of-data-probe-using-python-script/13524 "2020-09-17T11:25:33Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![valery](https://avatars.discourse-cdn.com/v4/letter/v/a87d85/32.png) [@valery](https://discourse.slicer.org/u/valery)
#### Post date: [September 17, 2020, 11:25am UTC](https://discourse.slicer.org/t/how-to-modify-the-content-of-data-probe-using-python-script/13524/1 "2020-09-17T11:25:33Z")

</div>

Hi everybody,

I’m looking for a bit of help. I would like to modify the content of “data probe” in python script inside Slicer.  
For instance : how to

- activate the colorbar on the overlay
- enable/disable corner text annotation
- change font properties

Maybe I missed it in the documentation, don’t hesitate to refer to it. Thanks a lot.  
Valéry

---

<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 17, 2020, 7:48pm UTC](https://discourse.slicer.org/t/how-to-modify-the-content-of-data-probe-using-python-script/13524/2 "2020-09-17T19:48:40Z")

</div>

See examples in script repository - [https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Hide\_slice\_view\_annotations\_.28DataProbe.29](https://www.slicer.org/wiki/Documentation/Nightly/ScriptRepository#Hide_slice_view_annotations_.28DataProbe.29)

If you don’t find how to access a specific function then have a look at the [DataProbe module source code](https://github.com/Slicer/Slicer/tree/master/Modules/Scripted/DataProbe/DataProbeLib) (it is implemented in Python) and take out or call the relevant code snippet.
