Slicer3:Python
From NAMIC Wiki
Home < Slicer3:Python
Python for scientific computing
Python has a fairly comprehensive package for scientific computing called SciPy. Of main interest to Slicer users/developers is NumPy. NumPy provides most of the features of the Matlab image processing toolbox and numeric computations, but in an Open Source package. A compelling reason to use NumPy is the ease of interaction and integration with Slicer3.
Slicer3 and Python
At the recent Slicer3 Mini-Retreat, a Python interpreter was added to the Slicer build. This may be built by following these steps.
- Install Python 2.4 or later
- Install NumPy, be sure to find the correct installer for your version of Python
- Run CMake setting the "USE_PYTHON" option, and setting the path to your Python installation
- Compile Slicer
- It is best to clean the SlicerBaseGUI project, as this may not be correctly rebuilt.
- A new build target SlicerGUIPython should appear
A new menu command Python Interpreter should appear on the Window menu.