# How to call the slicer python interactor?

**URL:** <https://discourse.slicer.org/t/how-to-call-the-slicer-python-interactor/10119>\
**Category:** Development\
**Created:** [February 5, 2020, 7:08am UTC](https://discourse.slicer.org/t/how-to-call-the-slicer-python-interactor/10119 "2020-02-05T07:08:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![timeanddoctor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/timeanddoctor/32/5839_2.png) [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)\
**Post date:** [February 5, 2020, 7:08am UTC](https://discourse.slicer.org/t/how-to-call-the-slicer-python-interactor/10119/1 "2020-02-05T07:08:19Z")

</div>

I studied the Shortcut keys in slicer and I want to custom a KEY(not default ctrl+3) to call the slicer python interactor. Can I do it with py?  
Thanks!

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [February 5, 2020, 12:33pm UTC](https://discourse.slicer.org/t/how-to-call-the-slicer-python-interactor/10119/2 "2020-02-05T12:33:19Z")

</div>

Yes, you should be able to connect any key to call:

`slicer.util.pythonShell().show()`

---

<div class="post-metadata">

**Author:** ![timeanddoctor](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/timeanddoctor/32/5839_2.png) [@timeanddoctor](https://discourse.slicer.org/u/timeanddoctor)\
**Post date:** [February 6, 2020, 5:30am UTC](https://discourse.slicer.org/t/how-to-call-the-slicer-python-interactor/10119/3 "2020-02-06T05:30:06Z")

</div>

Ok,  
Thank you very much!
