MCPcopy Create free account
hub / github.com/InternScience/SciReason / pretty_print_config

Function pretty_print_config

opencompass/utils/logging.py:86–94  ·  view source on GitHub ↗

Pretty print config using the rich library.

(cfg)

Source from the content-addressed store, hash-verified

84
85
86def pretty_print_config(cfg):
87 """Pretty print config using the rich library."""
88 console = Console()
89 config_str = cfg.pretty_text
90 syntax = Syntax(config_str,
91 'python',
92 theme='solarized-dark',
93 line_numbers=True)
94 console.print(syntax)

Callers 1

mainFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected