# Cannot run the registration in python interactor

**URL:** <https://discourse.slicer.org/t/cannot-run-the-registration-in-python-interactor/4432>\
**Category:** Support\
**Created:** [October 17, 2018, 12:20pm UTC](https://discourse.slicer.org/t/cannot-run-the-registration-in-python-interactor/4432 "2018-10-17T12:20:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Navodini\_Wijethilake](https://avatars.discourse-cdn.com/v4/letter/n/aeb1de/32.png) [@Navodini\_Wijethilake](https://discourse.slicer.org/u/Navodini_Wijethilake)\
**Post date:** [October 17, 2018, 12:20pm UTC](https://discourse.slicer.org/t/cannot-run-the-registration-in-python-interactor/4432/1 "2018-10-17T12:20:30Z")

</div>

Hey!!  
I was trying to run the registration code in the below link in the python interactor, but it doesn’t work.  
Can somebody please help me to find the terminal I have to use for this?  
[https://www.slicer.org/wiki/Documentation/4.1/Modules/BRAINSFit](https://www.slicer.org/wiki/Documentation/4.1/Modules/BRAINSFit)

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [October 17, 2018, 3:02pm UTC](https://discourse.slicer.org/t/cannot-run-the-registration-in-python-interactor/4432/2 "2018-10-17T15:02:15Z")

</div>

Here’s an example

> <https://github.com/SlicerRt/SlicerRT/blob/master/Testing/Python/IGRTWorkflow_SelfTest.py#L372-L405>

  
You need to make sure that the parameters are optimal. Follow a recipe from the [registration library](https://www.slicer.org/wiki/Documentation/Nightly/Registration/RegistrationLibrary) if it helps.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [October 17, 2018, 3:03pm UTC](https://discourse.slicer.org/t/cannot-run-the-registration-in-python-interactor/4432/3 "2018-10-17T15:03:21Z")

</div>

> [@Navodini\_Wijethilake](#):
>
> find the terminal

View / Python interactor or the yellow/blue snake icon on the toolbar.
