Modal logo
GuideExamples
Reference
ChangelogPlayground
Log In Sign Up
Python SDK Reference App Client CloudBucketMount Cls Cron Dict Environment Error FilePatternMatcher Function FunctionCall Image Period Probe Proxy Queue Retries Sandbox SandboxSnapshot Secret Server Tunnel Volume Workspace asgi_app batched billing concurrent config container_process current_function_call_id current_input_id enable_output enter exception exit fastapi_endpoint file_io forward interact io_streams is_local method parameter types web_server wsgi_app

enable_output

enable_output()

Context manager that enable output when using the Python SDK.

This will print to stdout and stderr things such as

  1. Logs from running functions
  2. Status of creating objects
  3. Map progress

Usage

app = modal.App()
with modal.enable_output():
    with app.run():
        ...
enable_output
Modal logo Modal logo © Modal 2026
About Status Changelog Documentation Slack Community Pricing Examples