class_docstr: A connection to Snowflake using the Snowflake Python Connector. Initialize using
  ``st.connection("<name>", type="snowflake")``.
  
  SnowflakeConnection supports direct SQL querying using ``.query("...")``, access to
  the underlying Snowflake Python Connector object with ``.raw_connection``, and other
  convenience functions. See the methods below for more information.
  SnowflakeConnections should always be created using ``st.connection()``, **not**
  initialized directly.
docstr: Create a new Snowpark Session from this connection.
  
  Information on how to use Snowpark sessions can be found in the `Snowpark documentation
  <https://docs.snowflake.com/en/developer-guide/snowpark/python/working-with-dataframes>`_.
docstr_tok: ["Create","a","new","Snowpark","Session","from","this","connection",".","Information","on","how","to","use","Snowpark","sessions","can","be","found","in","the","`","Snowpark","documentation","<","https",":","\/\/docs.snowflake.com\/en\/developer-guide\/snowpark\/python\/working-with-dataframes",">","`","_","."]
code: def session(self) -> "Session":
      """Create a new Snowpark Session from this connection.
  
      Information on how to use Snowpark sessions can be found in the `Snowpark documentation
      <https://docs.snowflake.com/en/developer-guide/snowpark/python/working-with-dataframes>`_.
      """
      from snowflake.snowpark.context import (
          get_active_session,
      )  # type:ignore[import]
      from snowflake.snowpark.session import (
          Session,
      )  # type:ignore[import]
  
      if running_in_sis():
          return get_active_session()
  
      return cast(
          Session,
          Session.builder.configs(
              {"connection": self._instance}
          ).create(),
      )
  
file_path: streamlit/lib/streamlit/connections/snowflake_connection.py
imports: from __future__ import annotations
  from datetime import timedelta
  from typing import TYPE_CHECKING, cast
  import pandas
  from streamlit.connections import BaseConnection
  from streamlit.connections.util import running_in_sis
  from streamlit.errors import StreamlitAPIException
  from streamlit.runtime.caching import cache_data
label_desc: Use image node_id 6 for calling the SnowflakeConnection obj's underlying member method code with example usage: obj.session() and returns: cast, get_active_session