TGViewer
Big Data Science Big Data Science @bdscience · 3.56K subscribers
Post #506 596
Make it easy: Debugging Python Code with the IceCream Library
IceCream
is a Python library that makes debugging easy and readable with minimal code. It includes printing expressions, variable names, function names, line numbers, file names, and much more that is useful to the developer when finding errors and fixing them. Instead of using print() or log() to debug code, the IceCream library has similar functions. In particular, ic() is similar to print(), but it prints the names of expressions, variables, and their values, and is 60% faster. The IceCream library more fully displays the examined data structures, has a rich output syntax, and can also include program context: file name, line number, and parent function.
IceCream's open source code is available on Github. The library supports Python 2, Python 3, PyPy2 and PyPy3, and can also be used in other programming languages: Dart, Rust, Node.js, C++, PHP, Go, Ruby, Java, R, Lua, Clojure(Script) and Bash .
Usage examples: https://towardsdatascience.com/introducing-icecream-never-use-print-to-debug-your-python-code-again-d8f2e5719f8a
GitHub GitHub - gruns/icecream: 🍦 Never use print() to debug again. 🍦 Never use print() to debug again. Contribute to gruns/icecream development by creating an account on GitHub.
  • 👍 2
More from @bdscience
  1. Nov 27, 2025💎 Imagen AI — an intelligent Adobe Lightroom assistant that automates photo editing by le…
  2. Oct 28, 2025🌐 OpenAI has released ChatGPT Atlas Atlas is a browser with an integrated AI sidebar, bui…
  3. Sep 16, 2025🤖 Nanobanana.ai is an AI aggregation platform that provides unified subscription-based ac…
  4. Jul 30, 2025🏀 Photoleap by Lightricks is a premier AI-powered image editing app that seamlessly blend…
  5. Jun 19, 2025⚙️ Rumi Labs transforms passive media into interactive entertainment A San Francisco-based…
  6. May 27, 2025📈Genspark AI: the autonomous super-agent for multi-step business workflows 🧠 Mixture-of-…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →