snowflake.snowpark.Session.get_active_session

classmethod Session.get_active_session() Optional[Session][source] (https://github.com/snowflakedb/snowpark-python/blob/v1.26.0/snowpark-python/src/snowflake/snowpark/session.py#L727-L736)

Gets the active session if one is created. If no session is created, returns None.

Language: English