# Implementing Python Code Into 3D Slicer

**URL:** https://discourse.slicer.org/t/implementing-python-code-into-3d-slicer/12272
**Category:** Support
**Created:** [June 29, 2020, 2:18pm UTC](https://discourse.slicer.org/t/implementing-python-code-into-3d-slicer/12272 "2020-06-29T14:18:27Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![vertebra](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/vertebra/32/7475_2.png) [@vertebra](https://discourse.slicer.org/u/vertebra)
#### Post date: [June 29, 2020, 2:18pm UTC](https://discourse.slicer.org/t/implementing-python-code-into-3d-slicer/12272/1 "2020-06-29T14:18:27Z")

</div>

I am having a lot of trouble with this 3D Slicer software. I have created a module that links to my python file. The goal of my code is to get the user to select a markup fiducial node on the lumbar vertebra. Then using the flood fill through a vtk class, we basically encompass the singular lumbar the user specified. Every time I have tried the code from the repository, there is no location for a fiducial node. What else do I need to add to the code in the repository? Basically, do you have any GitHub resources or anything helping with the code? I’m very unfamiliar with Python unfortunately.

---

<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: [July 1, 2020, 1:43am UTC](https://discourse.slicer.org/t/implementing-python-code-into-3d-slicer/12272/2 "2020-07-01T01:43:24Z")

</div>

Probably you have figured this out already, but for future reference, Slicer programming tutorials are available here: [https://www.slicer.org/wiki/Documentation/Nightly/Training#Tutorials\_for\_software\_developers](https://www.slicer.org/wiki/Documentation/Nightly/Training#Tutorials_for_software_developers)

It is recommended to complete a few basic Python tutorials before and it helps a lot if you are somewhat familiar with VTK and Qt toolkits.
