Skip to content

Latest commit

 

History

History
3 lines (3 loc) · 379 Bytes

File metadata and controls

3 lines (3 loc) · 379 Bytes

2024-03-02 - Inline Terminal Loading Bars

Learning: Terminal output can get cluttered with successive print() statements for loading steps. Using sys.stdout.write in combination with the carriage return character (\r) allows for updating the same line in place. Action: Use sys.stdout.write and \r for terminal progress/loading indicators to improve CLI UX.