Hi, I'm currently using sage with the notebook interface. How can I define a function in a cython cell and use it in another cython cell? I understand I need to import the first cython module but the name changes after every evaluation. Also being able to do this directly from notebook (without writing a separate cython file) and from separate cells would be handy.
For example this works fine:
%cython
def test(int n):
return 2*n
def test2(m):
return test(m)
test2(3)
but this does not:
%cython
def test3(int m):
return test(m)
Thank you :)