SPM12 standalone, jupyter, nipype

Hi guys,

I have some problems with access to SPM standalone from jupyter notebook on mac.

So am able to launch SPM from the command line with:
/Users/dima/Downloads/spm12/run_spm12.sh /Applications/MATLAB/MATLAB_Compiler_Runtime/v713/ fmri

but I get no output in jupyter on

matlab_cmd = ‘/Users/dima/Downloads/spm12/run_spm12.sh /Applications/MATLAB/MATLAB_Compiler_Runtime/v713 script’
spm.SPMCommand.set_mlab_paths(matlab_cmd=matlab_cmd, use_mcr=True)
spm.SPMCommand().version

Do you maybe have any idea, what I am doing wrong?

Best,

Dima