snowflake.snowpark.context.get_active_session¶
- snowflake.snowpark.context.get_active_session() Session [source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/context.py#L24-L32)¶
Returns the current active Snowpark session.
Raises: SnowparkSessionException: If there is more than one active session or no active sessions.
- Returns:
A
Session
object for the current session.