Running Cython in Jupyter iPython
<p>Running an iterative loop for a geometric progression for a time trial, using the Cython interface. </p>

<p>Get an error on compile (shift-enter): CompileError: command 'gcc' failed with exit status 1</p>

<pre><code>%load_ext Cython
</code></pre>

<blockquote>
  <p></p>
</blockquote>

<pre><code>%%cython
def geo_prog_cython(double alpha, int n):
    cdef double current = 1.0
    cdef double sum = current
    cdef int i
    for i in range(n):
        current = current * alpha
        sum = sum + current
    return sum
</code></pre>

<p>The error:</p>

<pre><code>//anaconda/lib/python3.5/distutils/command/build_ext.py in build_extension(self, ext)
    530                                          debug=self.debug,
    531                                          extra_postargs=extra_args,
--&gt; 532                                          depends=ext.depends)
    533 
    534         # XXX outdated variable, kept here in case third-part code
</code></pre>