Read this: Passing Additional Arguments to the Handler Function https://docs.snowflake.com/en/developer-guide/snowpark/python/python-worksheets#passing-additional-arguments-to-the-handler-function