snowflake.snowpark.Session.get_active_session¶

classmethod Session.get_active_session() → Optional[Session][source]¶

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