import matlab.engine leads to RESTART: Shell
<p>I tried to use the MATLAB Engine within Python on OS X. I installed it via: </p>

<pre><code>cd "matlabroot/extern/engines/python"
python setup.py install
</code></pre>

<p>When I run my code now:</p>

<pre><code>import matlab.engine
eng = matlab.engine.start_matlab()
tf = eng.isprime(37)
print tf
</code></pre>

<p>I get</p>

<pre><code>=============================== RESTART: Shell ===============================
&gt;&gt;&gt; 
</code></pre>

<p>Can anyone tell me what I can do to make it running?</p>