Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am louspringer on github.
  • I am louspringer (https://keybase.io/louspringer) on keybase.
  • I have a public key ASB7nEkvL3oMGaF4qZJFMgLqiaraQAyTyLyS2VlLFOIcqwo

To claim this, I am signing this object:

@louspringer
louspringer / snowpark_session.py
Created September 5, 2024 16:57
Snowflake Snowpark Session Creation One-Liner
# This code snippet creates a Snowflake Snowpark session. It works equivalently to obtain a
# session in a Snowflake hosted notebook, python script or Streamlit application, without
# the ~/.snowsql/config configuration.
#
# It uses the 'connection_name' set to 'default' to configure and get or create the session.
# The session is initialized in a concise one-liner.
#
# Local Configuration:
# Ensure the following is set up in the ~/.snowsql/config file:
#