![]() ![]() The log method could be used for logging to the terminal for long running applications such as servers, but is also a very nice debugging aid. Note the log_locals argument, which outputs a table containing the local variables where the log method was called. console import Console console = Console() Install with pip or your favorite PyPI package manager.įrom rich. Rich works with Jupyter notebooks with no additional configuration required. True color / emoji works with new Windows Terminal, classic terminal is limited to 16 colors. Rich can also render pretty tables, progress bars, markdown, syntax highlighted source code, tracebacks, and more - out of the box.įor a video introduction to Rich see calmcode.io by what people are saying about Rich. ![]() The Rich API makes it easy to add color and style to terminal output. Rich is a Python library for rich text and beautiful formatting in the terminal. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |