# Setup Jupyter Desktop Server

**URL:** <https://discourse.slicer.org/t/setup-jupyter-desktop-server/23512>\
**Category:** Support\
**Created:** [May 20, 2022, 6:21pm UTC](https://discourse.slicer.org/t/setup-jupyter-desktop-server/23512 "2022-05-20T18:21:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tiago\_Guiomar](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tiago_guiomar/32/14736_2.png) [@Tiago\_Guiomar](https://discourse.slicer.org/u/Tiago_Guiomar)\
**Post date:** [May 20, 2022, 6:21pm UTC](https://discourse.slicer.org/t/setup-jupyter-desktop-server/23512/1 "2022-05-20T18:21:53Z")

</div>

I’m trying to show the GUI in my jupyter notebook but I need to setup the Jupyter Desktop Server, any idea on how to do it?

---

<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:** [May 21, 2022, 3:27am UTC](https://discourse.slicer.org/t/setup-jupyter-desktop-server/23512/2 "2022-05-21T03:27:17Z")

</div>

Please describe which [installation option](https://github.com/Slicer/SlicerJupyter) did you choose, what exactly did, did you expect to happen, and what happened instead.

---

<div class="post-metadata">

**Author:** ![Tiago\_Guiomar](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/tiago_guiomar/32/14736_2.png) [@Tiago\_Guiomar](https://discourse.slicer.org/u/Tiago_Guiomar)\
**Post date:** [May 24, 2022, 6:30pm UTC](https://discourse.slicer.org/t/setup-jupyter-desktop-server/23512/3 "2022-05-24T18:30:55Z")

</div>

I’m running option 2, everytime I run the following code 3D Slicer opens a new tab and won’t run its GUI in jupyter

```auto
app = slicernb.AppWindow(contents="full", windowScale=1)

slicer.util.selectModule("SegmentEditor")
segmentEditorWidget = slicer.modules.segmenteditor.widgetRepresentation().self().editor
segmentEditorNode = segmentEditorWidget.mrmlSegmentEditorNode()
segmentationNode=slicer.mrmlScene.AddNewNodeByClass("vtkMRMLSegmentationNode")
segmentEditorWidget.setSegmentationNode(segmentationNode)
segmentEditorWidget.setMasterVolumeNode(volumeNode)

display(app)

```

 ![Capturar](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/e/1edb7a3053a7229af34d5b7ff1368bae45692bcf.jpeg)
