Add coloring to error messages
averyyip opened this issue · comments
We have been seeing problems with jupyter notebooks not submitting successfully and students not knowing their submission failed. It would be great if we can add a red coloring to the failure message so they would know about the failure and contact their GSIs.
Coloring Guide: https://stackoverflow.com/questions/287871/how-to-print-colored-text-in-terminal-in-python
Line Reference:
ok-client/client/api/notebook.py
Line 121 in 6ede08d
We should probably use https://stackoverflow.com/questions/287871/how-to-print-colored-text-in-terminal-in-python/3332860#3332860 since we have to support Windows but this seems like a great idea!
Yeah, just use colorama
, it takes care of auto-detecting the terminal and everything.
Resolved by #400