# How to load script in HelloPython tutorial?

**URL:** https://discourse.slicer.org/t/how-to-load-script-in-hellopython-tutorial/17072
**Category:** Support
**Created:** [April 13, 2021, 6:03pm UTC](https://discourse.slicer.org/t/how-to-load-script-in-hellopython-tutorial/17072 "2021-04-13T18:03:15Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![spycolyf](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@spycolyf](https://discourse.slicer.org/u/spycolyf)
#### Post date: [April 13, 2021, 6:03pm UTC](https://discourse.slicer.org/t/how-to-load-script-in-hellopython-tutorial/17072/1 "2021-04-13T18:03:15Z")

</div>

@lassoan @pieper,

The HelloPython tutorial say to load HelloPython.py. Do I load it into Python Interactor? Or do I use a text editor? Which tool shall I use to make changes to the python code on a Windows system? Shall I use a Python editor, or is that a good tool integrated with Slicer?

Thanks

---

<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: [April 13, 2021, 7:01pm UTC](https://discourse.slicer.org/t/how-to-load-script-in-hellopython-tutorial/17072/2 "2021-04-13T19:01:38Z")

</div>

> The HelloPython tutorial

To help us understand the context, which tutorial are you referring to ?

For reference, see [Documentation/Nightly/Training - Slicer Wiki](https://www.slicer.org/wiki/Documentation/Nightly/Training#Tutorials_for_software_developers)

---

<div class="post-metadata">

### Author: ![spycolyf](https://avatars.discourse-cdn.com/v4/letter/s/f17d59/32.png) [@spycolyf](https://discourse.slicer.org/u/spycolyf)
#### Post date: [April 13, 2021, 9:15pm UTC](https://discourse.slicer.org/t/how-to-load-script-in-hellopython-tutorial/17072/3 "2021-04-13T21:15:31Z")

</div>

OK, I realize my question was totally confusing after re-reading it. I have since finished the tutorial and now know how to load the script. However, I’m using NotePad++ to edit the HelloPython code, save it and then restart Slicer. Are there better tools for editing Python module code that integrates into Slicer and allows debugging and break points for example? 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: [April 13, 2021, 9:40pm UTC](https://discourse.slicer.org/t/how-to-load-script-in-hellopython-tutorial/17072/4 "2021-04-13T21:40:22Z")

</div>

I don’t use it myself, but yes, there are debuggers integrated with better editors.

[https://www.slicer.org/wiki/Documentation/Nightly/Extensions/DebuggingTools](https://www.slicer.org/wiki/Documentation/Nightly/Extensions/DebuggingTools)

---

<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: [April 13, 2021, 9:51pm UTC](https://discourse.slicer.org/t/how-to-load-script-in-hellopython-tutorial/17072/5 "2021-04-13T21:51:38Z")

</div>

> [@spycolyf](#):
>
> I’m using NotePad++ to edit the HelloPython code, save it and then restart Slicer.

Note that in the context of Slicer modules/extension/customapp, they are usually two copies of each script:

1. the ones available in the source tree
2. the ones copied in the build tree after building the project

Since we do not yet support a “develop” mode where we have a single copy, this means that after you modified the files in the build directory, you have to make sure to integrate your changes back in the source tree.

---

<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: [April 14, 2021, 3:40am UTC](https://discourse.slicer.org/t/how-to-load-script-in-hellopython-tutorial/17072/6 "2021-04-14T03:40:52Z")

</div>

As an IDE for Windows for Slicer Python module development, I would recommend PyCharm because it is a bit easier to set up and use. If you need a completely free version, you can use Visual Studio Code or Visual Studio. See detailed instructions [here](https://github.com/SlicerRt/SlicerDebuggingTools).
