Running external python file from

Hi,

I have developed a deep learning model for segmentation. For the purpose of inference, I want to run a python file from Slicer. What commands should I use for this purpose?

You might be able to install all the needed python packages into Slicer’s python using the slicer.util.pip_install or if it’s an independent python installation you can use slicer.util.launchConsoleProcess.