How to launch any Streamlit web app in DEV/showcase mode
- Launch Anaconda Prompt
- Activate the conda environment where your project was created
activate <env-name>
- Navigate to the folder where the app script is. After
(env-name) C:\Users\USERNAME>
, type:
cd C:\Users\USERNAME\project-folder\project-name
- After
(env-name) C:\Users\USERNAME\project-folder\project-name>
, type:
streamlit run <app-filename>.py
PS: this will only work if your app.py script is in the project-name folder.
- The command at point 4 will open up a new tab in your default web browser (mine is Microsoft Edge), where you will see your app.
- If you can't see your app, go back to Anaconda Prompt, where you will see this:
You can now view your Streamlit app in your browser.
Local URL: http://localhost:8502
Network URL: http://192.168.0.14:8502
If you copy and paste the Local URL onto your browser, it should show you your app.
To refresh the app and see any new changes:
An i sign will appear on the top-right. Click on "Rerun" to re-launch the app and see the new changes.