slicerutil
A package containing usefull functions for working with common nodes in 3D Slicer as NumPyArrays.
Table of Contents
Installation
!!!! Please install this package in a Slicer python environment through 3D Slicer's python terminal !!!!
Install dependencies:
- Python >= 3
- NumPy
- Matplotlib
Install slicerutil
import pip
pip.main(['install', 'slicerutil'])
Import the package
After installing the package use the following to import:
import slicerutil as su
or if you want to use the package in function mode (without oop):
import slicerutil.basic_functions as bf
License
The following repository is under MIT license. For more information, visit LICENSE.
Setup
Downloading the 3D slicer application & supporting software
Please follow the steps provided bellow:
- Visit slicer to download the application.
- Visit anaconda to download python3/ jupyter notebook.
- Visit Visual Studio Code to download the source-code editor (optional).
- From the Extensions Manager widget, download the SlicerJupyter, MeshToLabelMap, PETDICOMExtension (if working with PET DICOMS), SlicerRT (if working with radiotherapy data).
- The Slicer application needs to restart to install the extensions.
Set up the SlicerJupyter
-
Using the search widget in Slicer, open the SlicerJupyter extension by searching for JupyterKernel.
-
Click the "Start Jupyter Server" button. A JupyterLab notebook will open when the setup is complete.
-
Click the "Jupyter server in external Python environment" and copy the command to clipboard.
-
Open the anaconda prompt (Terminal if on mac) and paste the command.
-
(Optional) open an external environment (Visual Studio Code) and select the Slicer kernel!
Acknowledgements
The slicer scripting tutorial would not be possible without the following open source software:
Metadata
Release files for slicerutil 0.2.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| slicerutil-0.2.2.tar.gz | 199.9 kB | Without provenance | Details for slicerutil-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| slicerutil-0.2.2-py3-none-any.whl | Python 3 | none | any | Details for slicerutil-0.2.2-py3-none-any.whl |
Total release size: 400.3 kB
Release files / slicerutil-0.2.2.tar.gz
| Download URL | slicerutil-0.2.2.tar.gz |
|---|---|
| Size | 199.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b52f8192e53524979e1d055d443fa9ec3dc37c3d7f91c088eaed845fca0b4d60
|
|
BLAKE2b-256 checksum How to use checksums |
7afadcba215de7cc994851bcb309643c0ab5284c2660d6c0508a2d93e630991f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.5
|
Release files / slicerutil-0.2.2-py3-none-any.whl
| Download URL | slicerutil-0.2.2-py3-none-any.whl |
|---|---|
| Size | 200.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e303d13cb33385d0394e02ed6edf085e26ea003c0eb94c34b9596206f7e7deb6
|
|
BLAKE2b-256 checksum How to use checksums |
08998ed3eefb5532140dc640f221fe40d3ee2cd8f085bcdce7e18a057c17a996
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.11.5
|
Security for slicerutil 0.2.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.