Rich’s Console: Debug your Python Function in One Line of Code

Rich’s Console: Debug your Python Function in One Line of Code

Sometimes, you might want to know which elements in the function created a certain output. Instead of printing every variable in the function, you can simply use Rich’s Console object to print both the output and all the variables in the function.

The code snippet above shows how it works.

Find my full article on Rich here.

Search

Scroll to Top

Work with Khuyen Tran

Work with Khuyen Tran