# Segmentation double sphere

**URL:** <https://discourse.slicer.org/t/segmentation-double-sphere/13614>\
**Category:** Development\
**Tags:** segmentation\
**Created:** [September 22, 2020, 3:28pm UTC](https://discourse.slicer.org/t/segmentation-double-sphere/13614 "2020-09-22T15:28:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pierrebusson](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@pierrebusson](https://discourse.slicer.org/u/pierrebusson)\
**Post date:** [September 22, 2020, 3:28pm UTC](https://discourse.slicer.org/t/segmentation-double-sphere/13614/1 "2020-09-22T15:28:50Z")

</div>

Hello,  
I have created two sphere segmentations from Jupiter notebook and I don’t know how I can select one and do it and then select the other.  
Here’s a part of my code:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/a/3/a31766e011e0859838a34ce6d3cef69d9be07afb.png)  
Thank you

---

<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 22, 2020, 6:15pm UTC](https://discourse.slicer.org/t/segmentation-double-sphere/13614/2 "2020-09-22T18:15:13Z")

</div>

What do you mean by “selecting one”? Would you to show one and hide the other?

---

<div class="post-metadata">

**Author:** ![pierrebusson](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@pierrebusson](https://discourse.slicer.org/u/pierrebusson)\
**Post date:** [September 23, 2020, 8:16am UTC](https://discourse.slicer.org/t/segmentation-double-sphere/13614/3 "2020-09-23T08:16:41Z")

</div>

By selecting one I mean that with the two checkboxes I created to be able to select segmentation sphere 1 or sphere 2 in my case without rerunning my code cell after I checked a checkbox . Hiding one or an other can be a plus.

---

<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 23, 2020, 3:41pm UTC](https://discourse.slicer.org/t/segmentation-double-sphere/13614/4 "2020-09-23T15:41:01Z")

</div>

You still have not defined what you mean by selecting a sphere. What should happen when you “select” sphere 1?

---

<div class="post-metadata">

**Author:** ![pierrebusson](https://avatars.discourse-cdn.com/v4/letter/p/dc4da7/32.png) [@pierrebusson](https://discourse.slicer.org/u/pierrebusson)\
**Post date:** [September 24, 2020, 8:29am UTC](https://discourse.slicer.org/t/segmentation-double-sphere/13614/5 "2020-09-24T08:29:09Z")

</div>

I created two segments (sphere1 and sphere2) and when I select sphere 1,It should select the segment sphere 1

![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/2/d2168fd7138c0bc12ca572a3786858045d24266d.png)
