Use the Weave Display Module for console output
masterThe weave.trace.display module provides a unified interface for console output using a pluggable viewer system. This allows you to switch between different output backends (like rich or basic print) without changing your application logic.
While primarily intended for internal library use, you can use it to create styled console output, tables, and progress bars. You can interact with the module via a new Console instance or by using the default global display.console instance.
from weave.trace.display import display
# Use the default console
display.console.print("Hello, World!")
display.console.rule("Section")