Daily Dose of Data Science

Share this post

Inspect Program Flow with IceCream

www.blog.dailydoseofds.com

Discover more from Daily Dose of Data Science

High-quality insights on Data Science and Python, along with best practices β€” shared daily. Get a free 550+ page data science PDF guide and 450+ practice questions notebook.
Over 50,000 subscribers
Continue reading
Sign in

Inspect Program Flow with IceCream

Avi Chawla
Oct 29, 2022
2
Share this post

Inspect Program Flow with IceCream

www.blog.dailydoseofds.com
Share

While debugging, one often writes many π—½π—Ώπ—Άπ—»π˜() statements to inspect the program's flow. This is especially true when we have many IF conditions.

Using empty 𝗢𝗰() statements from the IceCream library can be a better alternative here. It outputs many additional details that help in inspecting the flow of the program.

This includes the line number, the name of the function, the file name, etc.

Read more in my Medium Blog: Link.

Thanks for reading Daily Dose of Data Science! Subscribe for free to learn something new and insightful about Python and Data Science every day. Also, get a Free Data Science PDF (250+ pages) with 200+ tips.


I like to explore, experiment and write about data science concepts and tools. You could connect with me on LinkedIn.

2
Share this post

Inspect Program Flow with IceCream

www.blog.dailydoseofds.com
Share
Previous
Next
Comments
Top
New
Community

No posts

Ready for more?

Β© 2023 Avi Chawla
Privacy βˆ™ Terms βˆ™ Collection notice
Start WritingGet the app
Substack is the home for great writing