# \#extensions

**URL:** https://discourse.slicer.org/tag/extensions/427.md?page=2

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

**Page:** 3

---

## [Install extensions from the command line using Slicer 5.2.2](https://discourse.slicer.org/t/install-extensions-from-the-command-line-using-slicer-5-2-2/31439)

<div class="topic-metadata">

**Author:** [@jhlegarreta](https://discourse.slicer.org/u/jhlegarreta)\
**Replies:** 10\
**Last updated:** [August 30, 2023, 2:59pm UTC](https://discourse.slicer.org/t/install-extensions-from-the-command-line-using-slicer-5-2-2/31439 "2023-08-30T14:59:10Z")

</div>

Hi, can Slicer extensions be installed from the command line? If yes, where can I find the related documentation? Thanks.

---

## [Installation of extensions from files not working](https://discourse.slicer.org/t/installation-of-extensions-from-files-not-working/31403)

<div class="topic-metadata">

**Author:** [@ga1g](https://discourse.slicer.org/u/ga1g)\
**Replies:** 0\
**Last updated:** [August 28, 2023, 12:56pm UTC](https://discourse.slicer.org/t/installation-of-extensions-from-files-not-working/31403 "2023-08-28T12:56:55Z")

</div>

Hi, I have a stand-alone computer with no internet connection, which I want to add extensions to. The downloaded extension files are installed but the functionality in Slicer is missing. Also when I click “more…” in th…

---

## [How to use function in module](https://discourse.slicer.org/t/how-to-use-function-in-module/31081)

<div class="topic-metadata">

**Author:** [@Theo](https://discourse.slicer.org/u/Theo)\
**Replies:** 2\
**Last updated:** [August 11, 2023, 1:33am UTC](https://discourse.slicer.org/t/how-to-use-function-in-module/31081 "2023-08-11T01:33:50Z")

</div>

i want to use a protected function in “openigtlinkif” module named “startCurrentIGTLConnector(bool)”,so i changed the source code to set it public and compile successfully, but my project still can’t find it, how to let…

---

## [Code autocompletion on VSCode fails](https://discourse.slicer.org/t/code-autocompletion-on-vscode-fails/26725)

<div class="topic-metadata">

**Author:** [@Alistair\_McCutcheon](https://discourse.slicer.org/u/Alistair_McCutcheon)\
**Replies:** 4\
**Last updated:** [July 21, 2023, 10:37pm UTC](https://discourse.slicer.org/t/code-autocompletion-on-vscode-fails/26725 "2023-07-21T22:37:44Z")

</div>

Problem: I’m trying to use VSCode to develop a Slicer extension. This is my first time using Slicer. I am trying to set up my development environment such that the code has typical autocomplete functions. I am using Ubu…

---

## [Load additional packages in Extension](https://discourse.slicer.org/t/load-additional-packages-in-extension/30460)

<div class="topic-metadata">

**Author:** [@haphantran](https://discourse.slicer.org/u/haphantran)\
**Replies:** 0\
**Last updated:** [July 8, 2023, 2:10am UTC](https://discourse.slicer.org/t/load-additional-packages-in-extension/30460 "2023-07-08T02:10:35Z")

</div>

Hi guys, We’re trying to build an extension and want to use Pandas package in the extension. How should we include the packages (like normal python app we have requirements.txt)? Thank you, Ha Phan.

---

## [About release a python extension with a CLI module](https://discourse.slicer.org/t/about-release-a-python-extension-with-a-cli-module/30420)

<div class="topic-metadata">

**Author:** [@bywbilly](https://discourse.slicer.org/u/bywbilly)\
**Replies:** 0\
**Last updated:** [July 5, 2023, 9:49pm UTC](https://discourse.slicer.org/t/about-release-a-python-extension-with-a-cli-module/30420 "2023-07-05T21:49:01Z")

</div>

Hi 3D Slicer Community, We are developing a Python extension and plan to release it into the 3D slicer community. To make the main time-consuming part run in the backend, we create a CLI module following this repo: Git…

---

## [Previously available extensions no longer available on 5.2.2](https://discourse.slicer.org/t/previously-available-extensions-no-longer-available-on-5-2-2/30226)

<div class="topic-metadata">

**Author:** [@jhlegarreta](https://discourse.slicer.org/u/jhlegarreta)\
**Replies:** 2\
**Last updated:** [June 26, 2023, 1:47pm UTC](https://discourse.slicer.org/t/previously-available-extensions-no-longer-available-on-5-2-2/30226 "2023-06-26T13:47:47Z")

</div>

Hi, I am using 3D Slicer 5.2.2 r31382 / fb46bd1, and when trying to install the following extensions it seems like the do not exist in the extension database (no match is shown), and thus cannot be installed: DTI-Reg D…

---

## [How to include other modules in plugins](https://discourse.slicer.org/t/how-to-include-other-modules-in-plugins/30035)

<div class="topic-metadata">

**Author:** [@ma1282029525](https://discourse.slicer.org/u/ma1282029525)\
**Replies:** 1\
**Last updated:** [June 16, 2023, 2:29pm UTC](https://discourse.slicer.org/t/how-to-include-other-modules-in-plugins/30035 "2023-06-16T14:29:20Z")

</div>

文档/每晚/开发人员/教程/创建可加载模块 - 切片器维基 (slicer.org) I used this tutorial to build extensions, but I still couldn’t successfully compile them。 严重性 代码 说明 项目 文件 行 禁止显示状态 错误 LNK2019 无法解析的外部符号 \_\_declspec(dllimport) public: s…

---

## [How to access a package declared in Slicer extension from the python console?](https://discourse.slicer.org/t/how-to-access-a-package-declared-in-slicer-extension-from-the-python-console/29779)

<div class="topic-metadata">

**Author:** [@fedorov](https://discourse.slicer.org/u/fedorov)\
**Replies:** 2\
**Last updated:** [June 1, 2023, 8:05pm UTC](https://discourse.slicer.org/t/how-to-access-a-package-declared-in-slicer-extension-from-the-python-console/29779 "2023-06-01T20:05:48Z")

</div>

I have a python package declared within the extension, and I can import it directly when accessing from the extension code. How can I import that extension in the Slicer python console? I’ve done this before, I know it …

---

## [How can I approximate the magic wand tool in Avizo/Amira?](https://discourse.slicer.org/t/how-can-i-approximate-the-magic-wand-tool-in-avizo-amira/29611)

<div class="topic-metadata">

**Author:** [@Russell\_Engelman](https://discourse.slicer.org/u/Russell_Engelman)\
**Replies:** 5\
**Last updated:** [May 24, 2023, 5:57pm UTC](https://discourse.slicer.org/t/how-can-i-approximate-the-magic-wand-tool-in-avizo-amira/29611 "2023-05-24T17:57:50Z")

</div>

I have a skull that I segmented using thresholding that I would like to segment into two layers, corresponding to the upper and lower jaws. I have previously done this in Amira/Avizo, where I select one of the two volume…

---

## [Unable to view rt struct even after installing slicerRT extension](https://discourse.slicer.org/t/unable-to-view-rt-struct-even-after-installing-slicerrt-extension/29527)

<div class="topic-metadata">

**Author:** [@Anonymous007](https://discourse.slicer.org/u/Anonymous007)\
**Replies:** 1\
**Last updated:** [May 18, 2023, 7:07pm UTC](https://discourse.slicer.org/t/unable-to-view-rt-struct-even-after-installing-slicerrt-extension/29527 "2023-05-18T19:07:49Z")

</div>

I was trying to install slicerRT extension using extension manager. But it was giving this error. Then I installed the extension manually from a file https://slicer-packages.kitware.com/api/v1/item/62c80d5caa08d161a3…

---

## [How to release an extension](https://discourse.slicer.org/t/how-to-release-an-extension/26289)

<div class="topic-metadata">

**Author:** [@ebrahim](https://discourse.slicer.org/u/ebrahim)\
**Replies:** 7\
**Last updated:** [May 11, 2023, 7:22pm UTC](https://discourse.slicer.org/t/how-to-release-an-extension/26289 "2023-05-11T19:22:10Z")

</div>

When creating a purely scripted (i.e. python only) Slicer extension, what is a good release “object” to create and how do I create it? Ideally I want something that I can use with the extension manager’s Install from fi…

---

## ['ColocZStats' extension install error on Windows](https://discourse.slicer.org/t/coloczstats-extension-install-error-on-windows/28581)

<div class="topic-metadata">

**Author:** [@CharlesChen](https://discourse.slicer.org/u/CharlesChen)\
**Replies:** 2\
**Last updated:** [April 12, 2023, 3:31am UTC](https://discourse.slicer.org/t/coloczstats-extension-install-error-on-windows/28581 "2023-04-12T03:31:51Z")

</div>

OS: Win 10 Version: 3D Slicer Stable 5.2.2 Hi there, I downloaded and installed the 3D Slicer stable version 5.2.2 on my windows for the first time. After installing the ‘ColocZStats’ extension through its built-in ‘…

---

## [Slicer fails to download custom sample data](https://discourse.slicer.org/t/slicer-fails-to-download-custom-sample-data/28561)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Replies:** 25\
**Last updated:** [April 7, 2023, 8:50pm UTC](https://discourse.slicer.org/t/slicer-fails-to-download-custom-sample-data/28561 "2023-04-07T20:50:29Z")

</div>

I have this code: which results in a download error: The file can be downloaded using Chrome and curl.exe. What is wrong?

---

## [Code style in Python modules?](https://discourse.slicer.org/t/code-style-in-python-modules/28529)

<div class="topic-metadata">

**Author:** [@dzenanz](https://discourse.slicer.org/u/dzenanz)\
**Replies:** 1\
**Last updated:** [March 22, 2023, 9:18pm UTC](https://discourse.slicer.org/t/code-style-in-python-modules/28529 "2023-03-22T21:18:41Z")

</div>

Is there some preferred style for Python code in extensions? What tools (e.g. black) can enforce it?

---

## [SlicerLookingGlass Extension: Slicer models are stretched and distorted on the Quilt](https://discourse.slicer.org/t/slicerlookingglass-extension-slicer-models-are-stretched-and-distorted-on-the-quilt/28303)

<div class="topic-metadata">

**Author:** [@mircat](https://discourse.slicer.org/u/mircat)\
**Replies:** 2\
**Last updated:** [March 20, 2023, 2:03pm UTC](https://discourse.slicer.org/t/slicerlookingglass-extension-slicer-models-are-stretched-and-distorted-on-the-quilt/28303 "2023-03-20T14:03:08Z")

</div>

Hello! When generating a quilt using the SlicerLookingGlass Module, the Slicer model becomes stretched, resulting in a blurry and distorted image on the Looking Glass Portrait. See image below. I have a cube model which…

---

## [CaseIterator - how to input source data](https://discourse.slicer.org/t/caseiterator-how-to-input-source-data/28079)

<div class="topic-metadata">

**Author:** [@ummmcam](https://discourse.slicer.org/u/ummmcam)\
**Replies:** 1\
**Last updated:** [February 27, 2023, 11:10pm UTC](https://discourse.slicer.org/t/caseiterator-how-to-input-source-data/28079 "2023-02-27T23:10:51Z")

</div>

Can anyone help me figure out how to create a usable csv for caseiterator? I created a csv with the headers specified in the module. If I import the file into Slicer I can get it to show up in the table list. I added a …

---

## [How to add icon to Module Tool Bar](https://discourse.slicer.org/t/how-to-add-icon-to-module-tool-bar/27770)

<div class="topic-metadata">

**Author:** [@Mauricio\_Cespedes](https://discourse.slicer.org/u/Mauricio_Cespedes)\
**Replies:** 2\
**Last updated:** [February 13, 2023, 3:38pm UTC](https://discourse.slicer.org/t/how-to-add-icon-to-module-tool-bar/27770 "2023-02-13T15:38:28Z")

</div>

Hi, I’m building some simple Slicer extension with Python and one of the things I want to implement in one of the modules is to add a widget to the ModuleToolBar. I’m currently doing this through this function: def mod…

---

## [How to make a 3D screen selection for Markup ControlPoints?](https://discourse.slicer.org/t/how-to-make-a-3d-screen-selection-for-markup-controlpoints/27575)

<div class="topic-metadata">

**Author:** [@sunshine](https://discourse.slicer.org/u/sunshine)\
**Replies:** 2\
**Last updated:** [February 1, 2023, 11:51am UTC](https://discourse.slicer.org/t/how-to-make-a-3d-screen-selection-for-markup-controlpoints/27575 "2023-02-01T11:51:53Z")

</div>

Hello everyone, I am working on my Python Scripted extension, trying to implement a rectangle (drawn by mouse) selection on the screen (3D Widget / Window) to select all the ControlPoints covered by the rectangle. Coul…

---

## [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…

---

## [Quilt Displays on Laptop but not on Looking Glass](https://discourse.slicer.org/t/quilt-displays-on-laptop-but-not-on-looking-glass/27498)

<div class="topic-metadata">

**Author:** [@mircat](https://discourse.slicer.org/u/mircat)\
**Replies:** 0\
**Last updated:** [January 27, 2023, 12:20pm UTC](https://discourse.slicer.org/t/quilt-displays-on-laptop-but-not-on-looking-glass/27498 "2023-01-27T12:20:21Z")

</div>

Hello, I am trying to use the Looking Glass Extension on 3D Slicer 5.2.1. I have the Looking Glass Portrait. I cannot seem to connect to the hardware from Slicer. What happens is the quilt displays on my laptop screen …

---

## [BoneReconstructionPlanner not generating bone models/cutting guides](https://discourse.slicer.org/t/bonereconstructionplanner-not-generating-bone-models-cutting-guides/27188)

<div class="topic-metadata">

**Author:** [@R\_Nara](https://discourse.slicer.org/u/R_Nara)\
**Replies:** 18\
**Last updated:** [January 22, 2023, 10:53am UTC](https://discourse.slicer.org/t/bonereconstructionplanner-not-generating-bone-models-cutting-guides/27188 "2023-01-22T10:53:42Z")

</div>

Dear Sir, I’m trying to plan a case of mandibular reconstruction using BoneReconstructionPlanner, but i’m stuck at one step, “create bone models from segmentations” doesn’t do anything and returns empty bone models, hen…

---

## [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…

---

## [Using module pynrrd in creation of extension](https://discourse.slicer.org/t/using-module-pynrrd-in-creation-of-extension/27330)

<div class="topic-metadata">

**Author:** [@devD](https://discourse.slicer.org/u/devD)\
**Replies:** 1\
**Last updated:** [January 18, 2023, 6:30pm UTC](https://discourse.slicer.org/t/using-module-pynrrd-in-creation-of-extension/27330 "2023-01-18T18:30:27Z")

</div>

Hi, I am currently creating an extension for Slicer that uses the model nrrd from pynrrd. However i get the error: ModuleNotFoundError: No module named ‘nrrd’ (I installed pynrrd by using “pip install pynrrd”) What c…

---

## [How to access Node in Scene?](https://discourse.slicer.org/t/how-to-access-node-in-scene/27197)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 6\
**Last updated:** [January 16, 2023, 7:18am UTC](https://discourse.slicer.org/t/how-to-access-node-in-scene/27197 "2023-01-16T07:18:01Z")

</div>

Operating system: window 11 Slicer version: 4.13.0 Hi , Slicer users I’m implementing an extension that draws a depthmap in slicer through a python module. Depthmap is almost done, but there is a problem in consideri…

---

## [Run Export To Files in the Segmentations Module from a script](https://discourse.slicer.org/t/run-export-to-files-in-the-segmentations-module-from-a-script/27235)

<div class="topic-metadata">

**Author:** [@Alistair\_McCutcheon](https://discourse.slicer.org/u/Alistair_McCutcheon)\
**Replies:** 2\
**Last updated:** [January 14, 2023, 4:27pm UTC](https://discourse.slicer.org/t/run-export-to-files-in-the-segmentations-module-from-a-script/27235 "2023-01-14T16:27:35Z")

</div>

I’d like to run the Export To Files functionality in the Segmentations Module from a slicer module I am developing. When running this, I need to be able to pass in the destination folder and the file format (nii.gz). Do…

---

## [How to divide the view area area of 3d slicer](https://discourse.slicer.org/t/how-to-divide-the-view-area-area-of-3d-slicer/27154)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 10\
**Last updated:** [January 13, 2023, 8:30pm UTC](https://discourse.slicer.org/t/how-to-divide-the-view-area-area-of-3d-slicer/27154 "2023-01-13T20:30:07Z")

</div>

Operating system: windows 11 Slicer version: slicer 4.13.0 I am developing a python extension version of a function that takes a depth map for markups points. I want to print this depthmap image in a small size in the…

---

## [How to set private extension?](https://discourse.slicer.org/t/how-to-set-private-extension/27221)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 2\
**Last updated:** [January 13, 2023, 6:55am UTC](https://discourse.slicer.org/t/how-to-set-private-extension/27221 "2023-01-13T06:55:10Z")

</div>

Operating system: Window 11 Slicer version: 4.13.0 Previously, I copied and pasted the code into the Python Interactor every time I ran the code to make sure the Python module worked properly within the 3D slicer. This…

---

## [How to access an already rendered object?](https://discourse.slicer.org/t/how-to-access-an-already-rendered-object/27098)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 0\
**Last updated:** [January 7, 2023, 3:02pm UTC](https://discourse.slicer.org/t/how-to-access-an-already-rendered-object/27098 "2023-01-07T15:02:34Z")

</div>

Operating system: window 11 Slicer version: 4.13.0 Hi, all Which function should be referenced to access the object in the image rendered on the 3D sclier? I’m planning a Python extension module, and I want to know t…

---

## [How can I interact with the slicer internal implementation functions?](https://discourse.slicer.org/t/how-can-i-interact-with-the-slicer-internal-implementation-functions/27055)

<div class="topic-metadata">

**Author:** [@dsa934](https://discourse.slicer.org/u/dsa934)\
**Replies:** 1\
**Last updated:** [January 5, 2023, 10:11pm UTC](https://discourse.slicer.org/t/how-can-i-interact-with-the-slicer-internal-implementation-functions/27055 "2023-01-05T22:11:21Z")

</div>

Hi, I am a newbie in 3D image processing. What I’d like to do is: I want to extend the Python module file I made to 3D slicer. However, this module needs to interact with several functions inside the 3D slicer. List …

[Previous page](https://discourse.slicer.org/tag/extensions/427.md?match_all_tags=true&page=1&tags%5B%5D=extensions)

[Next page](https://discourse.slicer.org/tag/extensions/427.md?match_all_tags=true&page=3&tags%5B%5D=extensions)
