# Connect to a running Slicer session

**URL:** <https://discourse.slicer.org/t/connect-to-a-running-slicer-session/14685>\
**Category:** Support\
**Created:** [November 19, 2020, 12:19pm UTC](https://discourse.slicer.org/t/connect-to-a-running-slicer-session/14685 "2020-11-19T12:19:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pll\_llq](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pll_llq/32/9408_2.png) [@pll\_llq](https://discourse.slicer.org/u/pll_llq)\
**Post date:** [November 19, 2020, 12:19pm UTC](https://discourse.slicer.org/t/connect-to-a-running-slicer-session/14685/1 "2020-11-19T12:19:47Z")

</div>

Is there a way to connect to a running Slicer session from a standalone script?

```auto
Given I have Slicer open
And I have an image open in Slicer
And I have a python script resting on my desktop
When I execute the python script
Then the script connects to the running slicer
And performs a python action on the opened image
And I see the result on the Slicer screen

```

But I didn’t use Slicers python interpreter nor I passed the script to slicer as a parameter during launch

---

<div class="post-metadata">

**Author:** ![pll\_llq](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pll_llq/32/9408_2.png) [@pll\_llq](https://discourse.slicer.org/u/pll_llq)\
**Post date:** [November 19, 2020, 12:48pm UTC](https://discourse.slicer.org/t/connect-to-a-running-slicer-session/14685/2 "2020-11-19T12:48:54Z")

</div>

After a bit more research I guess this is not how slicer or python works.
