Before you get started, you’re going to need a few things:
Streamlit — This one’s kind of important, so don’t forget to install.
If you haven’t already, take a few minutes to read through Main concepts to understand Streamlit’s data flow model.
Regardless of which package management tool you’re using, we recommend running these commands in a virtual environment. This ensures that the dependencies pulled in for Streamlit don’t impact any other Python projects you’re working on.
import streamlit as st
import numpy as np
import pandas as pd