Disordered logs when you use show on Serverless?

Your logs are desynchronised when you use a logger and DataFrame's show() method? Both are using different output, so to get them aligned, you need to configure the logger with:

logging.basicConfig(level=logging.INFO, stream=sys.stdout, force=True)
logger: Logger = logging.getLogger(__name__)