Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.5 KB

how-to-launch-streamlit-apps.md

File metadata and controls

36 lines (28 loc) · 1.5 KB

How to launch any Streamlit web app in DEV/showcase mode

  1. Launch Anaconda Prompt
  2. Activate the conda environment where your project was created
   activate <env-name>
  1. Navigate to the folder where the app script is. After (env-name) C:\Users\USERNAME>, type:
   cd C:\Users\USERNAME\project-folder\project-name
  1. 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.

  1. 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.
  2. 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.

Source: https://towardsdatascience.com/a-quick-tutorial-on-how-to-deploy-your-streamlit-app-to-heroku-874e1250dadd


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.