IceCream
IceCream — Never use print() to debug again
https://github.com/gruns/icecream
code: python
from icecream import ic
var=1
ic(var)
Tips
[Python Ice Cream: A better way to debug your code | by Priyank Desai | Dev Genius
https://blog.devgenius.io/python-ice-cream-a-better-way-to-debug-your-code-9601258a5f35
You can use
ic.disable()
to stop ic() from printing. If you wish to use them again, use
ic.enable()
.]