modal.enable_output
@contextlib.contextmanager
def enable_output(show_progress: bool = True) -> Generator[None, None, None]:
Context manager that enable output when using the Python SDK.
This will print to stdout and stderr things such as
- Logs from running functions
- Status of creating objects
- Map progress
Example:
app = modal.App()
with modal.enable_output():
with app.run():
...