# Development

**URL:** https://discourse.slicer.org/c/dev/5.md?no_subcategories=false&page=41

[Latest](https://discourse.slicer.org/latest.md) · [Categories](https://discourse.slicer.org/categories.md) · [Tags](https://discourse.slicer.org/tags.md)

**Page:** 42

---

## [ctkDateRangeWidget not available on Qt Designer](https://discourse.slicer.org/t/ctkdaterangewidget-not-available-on-qt-designer/27673)

<div class="topic-metadata">

**Author:** [@Gabriel\_WK](https://discourse.slicer.org/u/Gabriel_WK)\
**Replies:** 1\
**Last updated:** [February 6, 2023, 9:40pm UTC](https://discourse.slicer.org/t/ctkdaterangewidget-not-available-on-qt-designer/27673 "2023-02-06T21:40:24Z")

</div>

When editing a custom extension UI on Qt Designer using the “Edit UI” button in the Developer Section, ctkDateRangeWidget is not available. It’s still available through python with ctk.ctkDateRangeWidget(). Is there a wa…

---

## [Is communication possible with the 3D slicer's python console?](https://discourse.slicer.org/t/is-communication-possible-with-the-3d-slicers-python-console/27610)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 10\
**Last updated:** [February 4, 2023, 5:00pm UTC](https://discourse.slicer.org/t/is-communication-possible-with-the-3d-slicers-python-console/27610 "2023-02-04T17:00:55Z")

</div>

Operating system: window 10 Slicer version: 5.2.1 Hello , 3D slicer users With your help, my project has been successfully completed. The second project is communication. I’m going to create a Python module that com…

---

## [Lag when recording long sequences](https://discourse.slicer.org/t/lag-when-recording-long-sequences/27623)

<div class="topic-metadata">

**Author:** [@hgueziri](https://discourse.slicer.org/u/hgueziri)\
**Replies:** 0\
**Last updated:** [February 3, 2023, 7:31pm UTC](https://discourse.slicer.org/t/lag-when-recording-long-sequences/27623 "2023-02-03T19:31:45Z")

</div>

Hi all, I am currently using the Sequences module to record the transforms of tracked instruments. I have 7 instruments (transforms updated via PLUS/OpenIGTLink connector). At the beginning, everything works well but af…

---

## [ChatGPT knows a little about Slicer](https://discourse.slicer.org/t/chatgpt-knows-a-little-about-slicer/26888)

<div class="topic-metadata">

**Author:** [@mhalle](https://discourse.slicer.org/u/mhalle)\
**Replies:** 8\
**Last updated:** [February 3, 2023, 2:38pm UTC](https://discourse.slicer.org/t/chatgpt-knows-a-little-about-slicer/26888 "2023-02-03T14:38:21Z")

</div>

I tried to ask ChatGPT about 3D Slicer. Here is it’s frighteningly good responses. In some (most?) cases, the responses are convincing but wrong. In general, ChatGPT is very good at writing code, though. I include severa…

---

## [Add segmentation mask to volume](https://discourse.slicer.org/t/add-segmentation-mask-to-volume/27568)

<div class="topic-metadata">

**Author:** [@devD](https://discourse.slicer.org/u/devD)\
**Replies:** 1\
**Last updated:** [January 31, 2023, 7:38pm UTC](https://discourse.slicer.org/t/add-segmentation-mask-to-volume/27568 "2023-01-31T19:38:23Z")

</div>

Hi, I have created a segmentation as a numpy array. What is the procedure to add the segmentation to the original volume and then display it in Slicer. I’ve seen someone else use the function “slicer.util.arrayFromSegme…

---

## [How to save the content of a qTableWidget in a MRB file?](https://discourse.slicer.org/t/how-to-save-the-content-of-a-qtablewidget-in-a-mrb-file/27480)

<div class="topic-metadata">

**Author:** [@JessevdO](https://discourse.slicer.org/u/JessevdO)\
**Replies:** 3\
**Last updated:** [February 2, 2023, 10:36am UTC](https://discourse.slicer.org/t/how-to-save-the-content-of-a-qtablewidget-in-a-mrb-file/27480 "2023-02-02T10:36:17Z")

</div>

Hello, I would like to know how to save the content of a qTableWidget in a MRB file? For research I am doing, I have written a scripted loadable module which enables me to do all my measurements and save everything inf…

---

## [How to see all loaded data in Scene via Python](https://discourse.slicer.org/t/how-to-see-all-loaded-data-in-scene-via-python/27520)

<div class="topic-metadata">

**Author:** [@michabermoy](https://discourse.slicer.org/u/michabermoy)\
**Replies:** 2\
**Last updated:** [February 1, 2023, 11:37am UTC](https://discourse.slicer.org/t/how-to-see-all-loaded-data-in-scene-via-python/27520 "2023-02-01T11:37:19Z")

</div>

How can I obtain all loaded data in the scene via python, if such data exists? I need to create a conditional that only runs a certain function if the scene already has some data, otherwise the user is prompted to load d…

---

## [Tensorflow GPU, WSL and Slicer](https://discourse.slicer.org/t/tensorflow-gpu-wsl-and-slicer/27561)

<div class="topic-metadata">

**Author:** [@codey](https://discourse.slicer.org/u/codey)\
**Replies:** 0\
**Last updated:** [January 31, 2023, 4:50pm UTC](https://discourse.slicer.org/t/tensorflow-gpu-wsl-and-slicer/27561 "2023-01-31T16:50:03Z")

</div>

I can install and use Tensorflow 2.11 CPU in Slicer no problem on Windows 10. I’ve been looking into using the GPU but I see that Tensorflow require installation in Windows Subsytem for LInux (for TF \> 2.10) What woul…

---

## [How to get mouse position in 3D view?](https://discourse.slicer.org/t/how-to-get-mouse-position-in-3d-view/27393)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 11\
**Last updated:** [January 25, 2023, 6:20am UTC](https://discourse.slicer.org/t/how-to-get-mouse-position-in-3d-view/27393 "2023-01-25T06:20:44Z")

</div>

Operating system: window 10 Slicer version: 5.2.1 ## Custom add markups functions def test(): # get crosshair crosshairNode=slicer.util.getNode("Crosshair") pos = \[0,0,0\] crosshairNode.GetCursorPos…

---

## [MatlabBridge - empty volume by default instead of no volume](https://discourse.slicer.org/t/matlabbridge-empty-volume-by-default-instead-of-no-volume/27525)

<div class="topic-metadata">

**Author:** [@georg](https://discourse.slicer.org/u/georg)\
**Replies:** 2\
**Last updated:** [January 29, 2023, 4:37pm UTC](https://discourse.slicer.org/t/matlabbridge-empty-volume-by-default-instead-of-no-volume/27525 "2023-01-29T16:37:55Z")

</div>

Dear 3D-Slicer community, I am developing an extension using MatlabBridge which involves loading 3D and 4D images into 3D-Slicer. I adapted the automatically generated Matlab function to do so, but unfortunately it only …

---

## [Using python code](https://discourse.slicer.org/t/using-python-code/27518)

<div class="topic-metadata">

**Author:** [@Mohamad\_Saadi](https://discourse.slicer.org/u/Mohamad_Saadi)\
**Replies:** 0\
**Last updated:** [January 28, 2023, 5:11pm UTC](https://discourse.slicer.org/t/using-python-code/27518 "2023-01-28T17:11:15Z")

</div>

Hi, I found python code of segmenteditorextraeffects on github and was wondering if the code can be used stand alone ( by integrtating it in another code ) or it only can be used in python command in the software itsel…

---

## [Load a segmentation into the 3D viewer from a module](https://discourse.slicer.org/t/load-a-segmentation-into-the-3d-viewer-from-a-module/27512)

<div class="topic-metadata">

**Author:** [@Alistair\_McCutcheon](https://discourse.slicer.org/u/Alistair_McCutcheon)\
**Replies:** 1\
**Last updated:** [January 28, 2023, 1:31pm UTC](https://discourse.slicer.org/t/load-a-segmentation-into-the-3d-viewer-from-a-module/27512 "2023-01-28T13:31:13Z")

</div>

How would I go about loading a segmentation into the 3D viewer from a python module? Similarly, how would I go about doing it for a volume? Is there any way to load both at once into the 3d viewer but make the volume pa…

---

## [Maintenance of slicer.cdash.org planned for Friday Jan 27th 2023 - 9am to 12pm ET](https://discourse.slicer.org/t/maintenance-of-slicer-cdash-org-planned-for-friday-jan-27th-2023-9am-to-12pm-et/27466)

<div class="topic-metadata">

**Author:** [@jcfr](https://discourse.slicer.org/u/jcfr)\
**Replies:** 1\
**Last updated:** [January 27, 2023, 10:04pm UTC](https://discourse.slicer.org/t/maintenance-of-slicer-cdash-org-planned-for-friday-jan-27th-2023-9am-to-12pm-et/27466 "2023-01-27T22:04:14Z")

</div>

The quality dashboard system (CDash) will be temporarily unavailable while system updates are performed. The CDash instances will be unavailable during most of this time. The total upgrade is expected to take between 1-…

---

## [How to get the eye visibility checkbox widget in my module](https://discourse.slicer.org/t/how-to-get-the-eye-visibility-checkbox-widget-in-my-module/25648)

<div class="topic-metadata">

**Author:** [@Niels](https://discourse.slicer.org/u/Niels)\
**Replies:** 5\
**Last updated:** [January 26, 2023, 11:20pm UTC](https://discourse.slicer.org/t/how-to-get-the-eye-visibility-checkbox-widget-in-my-module/25648 "2023-01-26T23:20:30Z")

</div>

I like the checkboxes that are used for showing and hiding.For example the one in the Volume Rendering module or to show/hide segments in the segment editor. I know how to add an ordinary checkbox widget in my module us…

---

## [How to get mouse curser position in 3D view?](https://discourse.slicer.org/t/how-to-get-mouse-curser-position-in-3d-view/27456)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 0\
**Last updated:** [January 25, 2023, 6:08am UTC](https://discourse.slicer.org/t/how-to-get-mouse-curser-position-in-3d-view/27456 "2023-01-25T06:08:48Z")

</div>

Operating system: window 10 Slicer version: 5.2.1 def test(): # get crosshair crosshairNode=slicer.util.getNode("Crosshair") pos = \[0,0,0\] crosshairNode.GetCursorPositionRAS(pos) print(pos) …

---

## [Voila with slicerJupyter](https://discourse.slicer.org/t/voila-with-slicerjupyter/16772)

<div class="topic-metadata">

**Author:** [@fpsiddiqui91](https://discourse.slicer.org/u/fpsiddiqui91)\
**Replies:** 6\
**Last updated:** [January 24, 2023, 2:15pm UTC](https://discourse.slicer.org/t/voila-with-slicerjupyter/16772 "2023-01-24T14:15:59Z")

</div>

Hi all, Sorry, I am asking this question again as a new topic. I am trying to use Jupyter slicer to visualize my results and share it to some non-technical users. For this, I am planning to use Viola with a jupyter note…

---

## [Desktop icon for linux users](https://discourse.slicer.org/t/desktop-icon-for-linux-users/27381)

<div class="topic-metadata">

**Author:** [@luarpy](https://discourse.slicer.org/u/luarpy)\
**Replies:** 8\
**Last updated:** [January 23, 2023, 12:39pm UTC](https://discourse.slicer.org/t/desktop-icon-for-linux-users/27381 "2023-01-23T12:39:32Z")

</div>

Hello everyone, I have been using the 3dSlicer software for almost a year now and I got tired of launching the application from the command line. I would like to be able to contribute to create a desktop shortcut accord…

---

## [Remove largest island functionality?](https://discourse.slicer.org/t/remove-largest-island-functionality/25110)

<div class="topic-metadata">

**Author:** [@Mike\_Flanigan](https://discourse.slicer.org/u/Mike_Flanigan)\
**Replies:** 2\
**Last updated:** [January 23, 2023, 10:55am UTC](https://discourse.slicer.org/t/remove-largest-island-functionality/25110 "2023-01-23T10:55:49Z")

</div>

Hi there, Currently I’ve been working on automating a work flow in python that goes like the following: Load CT scans (as .tiffs) Create a segmentation and threshold to identify air in the scans Automate a mouse click…

---

## [Bratstoolkit how to use within 3D Slicer](https://discourse.slicer.org/t/bratstoolkit-how-to-use-within-3d-slicer/27411)

<div class="topic-metadata">

**Author:** [@Saima](https://discourse.slicer.org/u/Saima)\
**Replies:** 0\
**Last updated:** [January 23, 2023, 4:56am UTC](https://discourse.slicer.org/t/bratstoolkit-how-to-use-within-3d-slicer/27411 "2023-01-23T04:56:10Z")

</div>

How can i use brats toolkit within 3D Slicer. The toolkit allow auto brain tumour segmentation. Docker is also required to use it. I tried installing the toolkit. The toolkit seems installed successfully but it do not a…

---

## [Adding gauge line in Slice view](https://discourse.slicer.org/t/adding-gauge-line-in-slice-view/15913)

<div class="topic-metadata">

**Author:** [@forfullstack](https://discourse.slicer.org/u/forfullstack)\
**Replies:** 10\
**Last updated:** [January 22, 2023, 1:49pm UTC](https://discourse.slicer.org/t/adding-gauge-line-in-slice-view/15913 "2023-01-22T13:49:09Z")

</div>

I would like to implement gauge line around the slice intersection lines like screenshot. Then I will add some UI to control thickness of gauge. I think to add functions of drawing gauge line in the module what draws in…

---

## [Load live data into 3D slicer](https://discourse.slicer.org/t/load-live-data-into-3d-slicer/27319)

<div class="topic-metadata">

**Author:** [@Anjalimukundan](https://discourse.slicer.org/u/Anjalimukundan)\
**Replies:** 2\
**Last updated:** [January 22, 2023, 7:46am UTC](https://discourse.slicer.org/t/load-live-data-into-3d-slicer/27319 "2023-01-22T07:46:58Z")

</div>

How can I load live ultrasound probe data into 3D slicer

---

## [Custom Undo/Redo develop](https://discourse.slicer.org/t/custom-undo-redo-develop/27368)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 4\
**Last updated:** [January 20, 2023, 1:48pm UTC](https://discourse.slicer.org/t/custom-undo-redo-develop/27368 "2023-01-20T13:48:30Z")

</div>

Operating system: window 11 Slicer version: slicer 5.2.1 Q1. After searching various materials, it was said that the undo/redo function for all nodes drawn in the scene is difficult to implement. Is this true? Q2. If …

---

## [XNAT download\_dir called in a slicer module does not work as expected on fetching some of images, while exactly the same code works fine when run outside slicer](https://discourse.slicer.org/t/xnat-download-dir-called-in-a-slicer-module-does-not-work-as-expected-on-fetching-some-of-images-while-exactly-the-same-code-works-fine-when-run-outside-slicer/27350)

<div class="topic-metadata">

**Author:** [@S\_Arbabi](https://discourse.slicer.org/u/S_Arbabi)\
**Replies:** 0\
**Last updated:** [January 19, 2023, 12:55pm UTC](https://discourse.slicer.org/t/xnat-download-dir-called-in-a-slicer-module-does-not-work-as-expected-on-fetching-some-of-images-while-exactly-the-same-code-works-fine-when-run-outside-slicer/27350 "2023-01-19T12:55:33Z")

</div>

Hello, In one module I’d developed functionality to connect to RIA database through XNAT api and download specific images to local. Unfortunately I learned that for some unknown reason to me it drops on download\_dir. I …

---

## [Private Extension my own python code](https://discourse.slicer.org/t/private-extension-my-own-python-code/27285)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 13\
**Last updated:** [January 19, 2023, 6:49am UTC](https://discourse.slicer.org/t/private-extension-my-own-python-code/27285 "2023-01-19T06:49:48Z")

</div>

Operating system: window 11 Slicer version: 4.13.0 Hello, I have two questions regarding ‘private extension’. Q1. Is it correct that the extension created through the extension wizard works locally by default and bec…

---

## [Persist new server in DICOM Query Servers list](https://discourse.slicer.org/t/persist-new-server-in-dicom-query-servers-list/27227)

<div class="topic-metadata">

**Author:** [@Paula\_Moreno](https://discourse.slicer.org/u/Paula_Moreno)\
**Replies:** 3\
**Last updated:** [January 18, 2023, 11:39pm UTC](https://discourse.slicer.org/t/persist-new-server-in-dicom-query-servers-list/27227 "2023-01-18T23:39:28Z")

</div>

Hello everyone, I am woking with Slicer in docker and I would like to save a new server in DICOM networking for the followings session. So I need to find the file where these preferences are stored to use it as a volume…

---

## [Hide 2D Segment from Showing in Certain Slice Views](https://discourse.slicer.org/t/hide-2d-segment-from-showing-in-certain-slice-views/27312)

<div class="topic-metadata">

**Author:** [@xerox](https://discourse.slicer.org/u/xerox)\
**Replies:** 1\
**Last updated:** [January 18, 2023, 1:39am UTC](https://discourse.slicer.org/t/hide-2d-segment-from-showing-in-certain-slice-views/27312 "2023-01-18T01:39:08Z")

</div>

Hi, I currently have created a 2D segmentation algorithm in Python and have set my segmentations similar to how it is done in this code. Because my code is in 2D however and only segments based on the axial view, I want…

---

## [When i change the model to segmentation , it lost some accuracy](https://discourse.slicer.org/t/when-i-change-the-model-to-segmentation-it-lost-some-accuracy/27314)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 0\
**Last updated:** [January 18, 2023, 1:29am UTC](https://discourse.slicer.org/t/when-i-change-the-model-to-segmentation-it-lost-some-accuracy/27314 "2023-01-18T01:29:29Z")

</div>

hello community this is the model representation this is the representation the model change to segmentation binary labelmap i have compiled the whole Slicer Code, I don’t know how to change the parameter to mak…

---

## [How to load volume in the subprocess in python?](https://discourse.slicer.org/t/how-to-load-volume-in-the-subprocess-in-python/27245)

<div class="topic-metadata">

**Author:** [@jay1987](https://discourse.slicer.org/u/jay1987)\
**Replies:** 6\
**Last updated:** [January 18, 2023, 12:44am UTC](https://discourse.slicer.org/t/how-to-load-volume-in-the-subprocess-in-python/27245 "2023-01-18T00:44:23Z")

</div>

i have tryed to use SlicerParallelProcessing SlicerParallelProcessing can’t import slicer.util package

---

## [Get image intensity histogram of a segment](https://discourse.slicer.org/t/get-image-intensity-histogram-of-a-segment/11277)

<div class="topic-metadata">

**Author:** [@Benjamin\_Coiffard](https://discourse.slicer.org/u/Benjamin_Coiffard)\
**Replies:** 9\
**Last updated:** [January 17, 2023, 8:35pm UTC](https://discourse.slicer.org/t/get-image-intensity-histogram-of-a-segment/11277 "2023-01-17T20:35:21Z")

</div>

---

## [Is it possible to create segmentation from given coordinate information (x,y,z)?](https://discourse.slicer.org/t/is-it-possible-to-create-segmentation-from-given-coordinate-information-x-y-z/27281)

<div class="topic-metadata">

**Author:** [@aysegul\_sayin](https://discourse.slicer.org/u/aysegul_sayin)\
**Replies:** 3\
**Last updated:** [January 17, 2023, 7:50pm UTC](https://discourse.slicer.org/t/is-it-possible-to-create-segmentation-from-given-coordinate-information-x-y-z/27281 "2023-01-17T19:50:32Z")

</div>

Is it possible to segment the x, y, z points that I entered manually? I found that polygons or cubes are drawn with python using vtk, but what I want is to segment the coordinate points I have given by painting. For exam…

[Previous page](https://discourse.slicer.org/c/dev/5.md?no_subcategories=false&page=40)

[Next page](https://discourse.slicer.org/c/dev/5.md?no_subcategories=false&page=42)
