snowflake.snowpark.Session.getActiveSession¶ classmethod Session.getActiveSession() → Optional[Session][source] (https://github.com/snowflakedb/snowpark-python/blob/v1.29.0/snowpark-python/src/snowflake/snowpark/session.py#L756-L765)¶ Gets the active session if one is created. If no session is created, returns None.