Method: rich.reconfigure
Calls: 1, Exceptions: 0, Paths: 1Back
Path 1: 1 calls (1.0)
() (1)
{'width': 100} (1)
1def reconfigure(*args: Any, **kwargs: Any) -> None:
2 """Reconfigures the global console by replacing it with another.
3
4 Args:
5 *args (Any): Positional arguments for the replacement :class:`~rich.console.Console`.
6 **kwargs (Any): Keyword arguments for the replacement :class:`~rich.console.Console`.
7 """
8 from rich.console import Console
9
10 new_console = Console(*args, **kwargs)
11 _console = get_console()
12 _console.__dict__ = new_console.__dict__