# Running the python script without the opening of slicer window

**URL:** https://discourse.slicer.org/t/running-the-python-script-without-the-opening-of-slicer-window/29629
**Category:** Development
**Tags:** build, segmentation, python
**Created:** [May 24, 2023, 12:23pm UTC](https://discourse.slicer.org/t/running-the-python-script-without-the-opening-of-slicer-window/29629 "2023-05-24T12:23:55Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Mani\_Barathi](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mani_barathi/32/66099_2.png) [@Mani\_Barathi](https://discourse.slicer.org/u/Mani_Barathi)
#### Post date: [May 24, 2023, 12:23pm UTC](https://discourse.slicer.org/t/running-the-python-script-without-the-opening-of-slicer-window/29629/1 "2023-05-24T12:23:55Z")

</div>

I need to get output in my own developed UI not in the Slicer. Can you please help me with this ?

---

<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 24, 2023, 1:44pm UTC](https://discourse.slicer.org/t/running-the-python-script-without-the-opening-of-slicer-window/29629/2 "2023-05-24T13:44:00Z")

</div>

For a while we experimented with replacing the Slicer main window with our own widget, but later we figured it is much better for many reasons to customize the main window instead (hide what we don’t need, add any custom widgets, toolbars, menus, etc. that we need).

See [this page](https://www.slicer.org/wiki/Documentation/Nightly/Developers/Slicelets) for more information and examples.
