# How can jupyter control all the slicer

**URL:** https://discourse.slicer.org/t/how-can-jupyter-control-all-the-slicer/39592
**Category:** Support
**Tags:** jupyter
**Created:** [October 9, 2024, 12:43am UTC](https://discourse.slicer.org/t/how-can-jupyter-control-all-the-slicer/39592 "2024-10-09T00:43:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![VirOrange](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/virorange/32/77989_2.png) [@VirOrange](https://discourse.slicer.org/u/VirOrange)
#### Post date: [October 9, 2024, 12:43am UTC](https://discourse.slicer.org/t/how-can-jupyter-control-all-the-slicer/39592/1 "2024-10-09T00:43:47Z")

</div>

Hi everyone,

I am new to Slicer and would like to understand how Jupyter can be used to control Slicer. Specifically:

1. Does using Jupyter mean that I can debug and trace the execution of different modules within Slicer, such as following specific processes step by step?
2. Additionally, if I want to create my own module and run it through Jupyter, is that possible?

I am particularly interested in the first question, as I currently have no idea how to effectively use Jupyter for my research. For context, I have already gone through the tutorials and run some example scripts, but I would appreciate more detailed guidance.

Thank you in advance for your help!

Best wishes.

---

<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: [October 10, 2024, 4:49am UTC](https://discourse.slicer.org/t/how-can-jupyter-control-all-the-slicer/39592/2 "2024-10-10T04:49:07Z")

</div>

> [@VirOrange](#):
>
> Does using Jupyter mean that I can debug and trace the execution of different modules within Slicer, such as following specific processes step by step?

You still debug and trace execution of different modules within Slicer using a debugger. For Python scripted modules, you can use the [DebuggingTools extension](https://slicer.readthedocs.io/en/latest/developer_guide/debugging/python.html).

> [@VirOrange](#):
>
> Additionally, if I want to create my own module and run it through Jupyter, is that possible?

You can run your code either in Jupyter or by [creating a new Slicer module](https://github.com/Slicer/SlicerProgrammingTutorial).

I find Jupyter most useful for prototyping algorithms. If I get something that is useful and I want to share it with users then I put the algorithm into a new Python scripted Slicer module.

---

<div class="post-metadata">

### Author: ![VirOrange](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/virorange/32/77989_2.png) [@VirOrange](https://discourse.slicer.org/u/VirOrange)
#### Post date: [October 12, 2024, 1:34pm UTC](https://discourse.slicer.org/t/how-can-jupyter-control-all-the-slicer/39592/3 "2024-10-12T13:34:42Z")

</div>

Thanks for your reply! it’s really a comfort for me. ☺
