This README provides instructions for setting up the lab environment for the Snowpark Hands-On Lab.
Before starting the lab setup, ensure you have the following installed:
- Anaconda or Miniconda
- Visual Studio Code (VS Code)
Snowflake Lab Environment: https://app.snowflake.com/sfsenorthamerica/ctripp_hol/
To create the conda environment for the lab:
Open a terminal / cmd / powershell window, navigate to this directory and run:
conda env create -f environment.yaml
NOTE: If you need to delete and recreate the environment, you can use:
conda env remove -n snowparkml
-
Open the
hol_auth.json
file in VS Code -
Replace
X
with your given user number (USERX becomes USER0 for example) -
Enter the password given to you by the instructor
-
Save the file
-
Open VS Code.
-
Open the
End-to-End Data Science using Snowpark - Easy Path.ipynb
notebook. -
In the top right corner of the notebook, select the
snowparkml
kernel. -
Follow the instructor through the guided lab!
WAIT UNTIL THE INSTRUCTOR PROMPTS YOU TO CREATE THE STREAMLIT SETUP BEFORE PROCEEDING
-
Create a new Streamlit in Snowflake (SiS) app.
-
Replace the existing code in the app with the code from
SiS_application.py
. -
Update the schema name in the code by doing a find and replace on
schema0
to use your schema name. -
In the SiS code window, click on the "Packages" drop-down and add the following packages:
pydeck
snowpark-ml-python
-
Run the SiS application.
You should now have the lab environment set up and ready to go. Enjoy the Snowpark Hands-On Lab!