[Solved] Recieve global variable (Cython)

In an Ipython session I can do: In [2]: %load_ext Cython In [3]: one = 1 In [4]: %%cython …: def foo(num): …: return num + 1 …: In [5]: foo(one) Out[5]: 2 That is I define a cython function, but call it from Python with the global variable. If I define the function with … Read more