Icecream: Adding a Datetime Stamp to Python print

If you want to make print debugging more readable, use icecream. Besides showing the code that is responsible for the output, icecream can also show the time that the code is executed.

In the code below, I change prefix to the current datetime. After configuring, you can simply use ic() to print both the code responsible for the output and the time it is executed!

You can find a full article on icecream here. 

Scroll to Top

Work with Khuyen Tran

Work with Khuyen Tran