Introduction to Vega-Lite/Altair and Streamlit

Due to the new course structure we'll try something new this year. We'll use Python (which I my past students were all familiar with) with Streamlit to build data apps and Altair to visualize data.

Getting started

  • Make sure to have Python installed. You need version 3.6 at minimum. If you don't have it yet, I recommend Anaconda Python
  • Follow the instructions to install Streamlit: https://docs.streamlit.io/en/stable/
  • Once installed try to run the hello world app: streamlit hello

There are likely going to be issues with some students (there always are). Call me up to help you.

Your task

Once you have the hello world program running:

  • download the following file to learn the basics of visualizing data with Altair
  • Run the file with streamlit run 01_IntroAltair.py
  • Read through it and do the little exercises that come with it

Call me if you have problems or if there is something you do not understand. If you are fast and get done with this part before the end of the class, get started with Assignment1.