Run commands at PythonSlicer

Hi,

Is there a way to run these commands in PythonSlicer?

I need to access mrmlScene from PythonSlicer, but I’m not sure how to do it. Any suggestions?

PythonSlicer exposes only the python part, not the slicer application part. You can use the --no-main-window to run a script with app features but no gui.