A Python worksheet is a Snowsight development interface for writing, configuring, executing, and deploying Snowpark Python code in Snowflake. Configure the worksheet with a role, warehouse, database, schema, handler, return type, and required packages before running the code. section 6.2 section 6.8
A practical worksheet workflow includes:
- Select SYSADMIN, a virtual warehouse, database, and schema for the worksheet context. section 6.2
- Set the handler and return type, remembering that Boolean results must be returned as strings. section 6.2
- Use a meaningful worksheet name and organize multiple worksheets in folders. section 6.2
Holiday-checking procedure
Configure a Python worksheet around an IS_HOLIDAY handler, select the holidays package, and check whether a date belongs to a country’s holiday calendar. The procedure can be called with dates and countries such as US and FR to return True or False.
