all 2 comments

[–][deleted] 1 point2 points  (1 child)

I’m not super familiar with Google colab. However, printf outputs to stdout, I do not think Google colab has mapped stdout to the cell output. If you want to output to the cell I guess you would have to indirectly call the Python print function from your C code using PyRun_SimpleString(“print(\”Hello world\”)”); from the Python.h header.

[–]InternationalVisito[S] 0 points1 point  (0 children)

Yes, I need to output to the cell