# How to hide nodes in data module

**URL:** <https://discourse.slicer.org/t/how-to-hide-nodes-in-data-module/16647>\
**Category:** Development\
**Tags:** python\
**Created:** [March 19, 2021, 4:27pm UTC](https://discourse.slicer.org/t/how-to-hide-nodes-in-data-module/16647 "2021-03-19T16:27:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![akshay\_pillai](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/akshay_pillai/32/8301_2.png) [@akshay\_pillai](https://discourse.slicer.org/u/akshay_pillai)\
**Post date:** [March 19, 2021, 4:27pm UTC](https://discourse.slicer.org/t/how-to-hide-nodes-in-data-module/16647/1 "2021-03-19T16:27:06Z")

</div>

Operating system: windows 10  
Slicer version: 4.11

Is there any way to programmatically toggle the visibility of nodes in the data module? If so , how?

---

<div class="post-metadata">

**Author:** ![Sunderlandkyl](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/sunderlandkyl/32/79987_2.png) [@Sunderlandkyl](https://discourse.slicer.org/u/Sunderlandkyl)\
**Post date:** [March 19, 2021, 5:58pm UTC](https://discourse.slicer.org/t/how-to-hide-nodes-in-data-module/16647/2 "2021-03-19T17:58:02Z")

</div>

You can use the SetDisplayVisibility() function. If you want finer control over display options, you can access the display node with GetDisplayNode().

vtkMRMLDisplayableNode doc:  
[https://apidocs.slicer.org/master/classvtkMRMLDisplayableNode.html](https://apidocs.slicer.org/master/classvtkMRMLDisplayableNode.html)
