File tree Expand file tree Collapse file tree
perimeter-security-control Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010import streamlit as st
1111from snowflake .snowpark .context import get_active_session
1212from streamlit .navigation .page import StreamlitPage
13- from toolz import pipe
14- from toolz .curried import do as cdo
15- from toolz .curried import filter as cfilter
16- from toolz .curried import map as cmap
17- from toolz .curried import pluck as cpluck
13+ try :
14+ from toolz import pipe
15+ from toolz .curried import do as cdo
16+ from toolz .curried import filter as cfilter
17+ from toolz .curried import map as cmap
18+ from toolz .curried import pluck as cpluck
19+ except ImportError :
20+ st .error ("Could not import `toolz` package. Please make sure it's added to the list of packages in the dropdown." )
21+ st .stop ()
1822
1923st .set_page_config (layout = "wide" )
2024# Connection short-circuits in SiS, creating the session immediately
You can’t perform that action at this time.
0 commit comments