snowflake.snowpark.Session.SessionBuilder.getOrCreate

SessionBuilder.getOrCreate() Session

Gets the last created session or creates a new one if needed.