# Python Interactor process

**URL:** <https://discourse.slicer.org/t/python-interactor-process/2283>\
**Category:** Support\
**Created:** [March 10, 2018, 10:06pm UTC](https://discourse.slicer.org/t/python-interactor-process/2283 "2018-03-10T22:06:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Fadwa\_Darwaish](https://avatars.discourse-cdn.com/v4/letter/f/d78d45/32.png) [@Fadwa\_Darwaish](https://discourse.slicer.org/u/Fadwa_Darwaish)\
**Post date:** [March 10, 2018, 10:06pm UTC](https://discourse.slicer.org/t/python-interactor-process/2283/1 "2018-03-10T22:06:43Z")

</div>

I would like to know the process name/number to link to the Python interactor

Thank you  
Fadwa

---

<div class="post-metadata">

**Author:** ![jcfr](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/jcfr/32/17825_2.png) [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Post date:** [March 10, 2018, 10:13pm UTC](https://discourse.slicer.org/t/python-interactor-process/2283/2 "2018-03-10T22:13:33Z")

</div>

Hi Fadwa,

Since python is embedded into Slicer, getting the PID of the application should answer the question.

Here are the command you can enter in the interactor:

```auto
>>> slicer.app.applicationPid()
18082L

```

On unix, this is the same value that would be returned by the `ps` command:

```auto
 ps aux | grep Slicer
jcfr 18080 0.0 0.0 141592 12672 pts/4 Sl+ 17:08 0:00 ./Slicer
jcfr 18082 2.2 0.6 4416196 405612 pts/4 SNl+ 17:08 0:03 /home/jcfr/Projects/Slicer-Qt5-VTK9-RelWithDebInfo/Slicer-build/bin/./SlicerApp-real

```
