Show python output?

Hey All, I wonder if there is any way to show python output
—i.e.logs or print(‘Using device:’, device)—
in Spaces.

Thanks in advance