Streamlit_App_Setup_Guide
Streamlit_App_Setup_Guide
Here's a step-by-step guide to setting up and running the Streamlit app on Windows using
VS Code, including installing the necessary libraries:
2. Install Python:
3. Verify Installation:
Command:
python --version
2. Install VS Code:
3. Install Libraries:
12. In the terminal, run the following command to install Streamlit and other necessary
libraries:
Command:
13. This installs all the libraries needed for the app: Streamlit, pandas, numpy, scikit-learn,
matplotlib, and seaborn.
16. Copy the Streamlit code I provided earlier and paste it into the `ml_algo.py` file.
Command:
20. This command will start the Streamlit server, and it should automatically open a new
tab in your default web browser displaying the Streamlit app.
21. If it doesn’t open automatically, go to the URL shown in the terminal (usually
`http://localhost:8501`).
Step 6: Interact with the App
22. 1. Upload Dataset: Upload your CSV file using the file uploader.
2. Select Features and Target: Choose your features and target column from the dataset.
5. Scatter Plot: Select the X and Y axis features to view a scatter plot.
Additional Notes
26. Restart the Server: Anytime you make changes to `ml_algo.py`, save the file, and
Streamlit will automatically refresh the browser window. If it doesn’t refresh, restart
the server with `streamlit run ml_algo.py`.