Calling a C function with printf from sage
Hi,
I'm trying to run the first example in doc.sagemath.org/html/en/thematic_tutorials/cython_interface.html on SageMathCloud. After creating the necessary hello.c and hello_sage.pyx, I tried running the Cython function in a sage notebook:
%runfile hello_sage.pyx
my_bridge_function()
The problem is that I see the pyx was compiled successfully, but nothing is printed.
I would appreciate any help on how to run the example, or an alternative way to print from a C function that would be visible in the notebook. (I have a more complex C file that I'm trying to run, but it is difficult to debug it without printing)
Thanks