title: ImportError: Cannot import Cython module
body: <p>I have a class named <code>neuron</code> in Cython syntax which works perfectly fine with Jupyter inline using magic <code>(%%cython)</code>:</p>
  <pre><code>cdef class neuron: pass
  </code></pre>
  <p>and I am trying to cythonize this so that I can import it on a cluster and run larger scale experiments using Jupyter on a conda environment. My <code>setup.py</code> file looks like this:</p>
  <pre><code>from setuptools import setup, Extension
  from Cython.Build import cythonize
  
  extensions = [
  Extension(&quot;Neuronal_Cascades_cython_Base1&quot;, [&quot;Neuronal_Cascades_cython_Base1.pyx&quot;]),
  ]
  setup(
      name=&quot;Neuronal_Cascades_cython_Base&quot;,
      ext_modules=cythonize(extensions),
  )
  </code></pre>
  <p>Cythonize works fine and <code>.so</code> and <code>.c</code> files created fine without any errors. But when I'm importing these two modules in Jupyter notebook, I get the import error:</p>
  <pre><code>---------------------------------------------------------------------------
  ImportError                               Traceback (most recent call last)
  &lt;ipython-input-3-639e2d302e82&gt; in &lt;module&gt;
        1 import matplotlib.pyplot as plt
        2 import numpy as np
  ----&gt; 3 from Neuronal_Cascades_cython_Base1 import neuron
        4 import os
        5 import pickle
  
  ImportError: cannot import name 'neuron' from 'Neuronal_Cascades_cython_Base1'     (/Users/bengieru/Neuronal_Cascades/Cython/Neuronal_Cascades_cython_Base1.cpython-37m-darwin.so)
  </code></pre>
  <p>Can anyone tell what I am doing wrong? I feel like it may be related with the <code>setup.py</code> importing dependencies but I'm not sure how to fix it.</p>