You are viewing documentation about an older version (1.26.0). View latest version

snowflake.snowpark.Session.getActiveSession

classmethod Session.getActiveSession() Optional[Session][source]

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