setting module import path in cython in the notebook
I want to break up a long chunk of cythonised code in the notebook and put the cython code in my own user directory and then cimport as needed. So I have created a directory and created the MyEi.pxd and MyEi.pyx file. In the notebook cell I have:
''%cython
#cinclude /home/dad/MyModule/
import cython
cimport MyEi
from MyEi cimport MyEiz''
On running I get:
ImportError: No module named MyEi
Where am I going wrong? I am now totally confused about search paths.
Martin
Thank you for the response. Being a bit of a linux newbie I was hoping I could stay in the notebook. Oh well something else to learn I suppose.
Thank you for the response. Being a bit of a linux newbie I was hoping I could stay in the notebook. OH well something else to learn I suppose.