A singleton class to manage rich progress bars for the application.
Initialize the RichProgressManager.
Source code in darts-utils/src/darts_utils/rich.py
| def __init__(self):
"""Initialize the RichProgressManager."""
self.console = rich.console.Console()
|
_instance
class-attribute
instance-attribute
console
instance-attribute
console = rich.console.Console()
__del__
Exit the RichProgressManager.
Source code in darts-utils/src/darts_utils/rich.py
| def __del__(self):
"""Exit the RichProgressManager."""
|
__new__
Create a new instance of the RichProgressManager if it does not exist yet.
Source code in darts-utils/src/darts_utils/rich.py
| def __new__(cls):
"""Create a new instance of the RichProgressManager if it does not exist yet."""
if cls._instance is None:
cls._instance = super().__new__(cls)
return cls._instance
|