Streamlit is an open source Python library. This utility is designed to create custom web applications for machine learning and data analysis. It is one of the fastest ways to design, build, and deploy data processing applications.
Running Streamlit on Ubuntu 21.04
So, you decide to start Streamlit. To do this, you will need to log into your server using SSH, the Streamlit process will close after logging out of the SSH session. To start Streamlit when you leave your SSH session, use tmux, a terminal muxer. Using a terminal multiplexer will allow you to run the Streamlit process in the background. In order for you to be able to create a tmux session, you need to run the following command:
tmux new -s StreamlitSession
Start Streamlit on the default port
Once you go to the given terminal, you will be given the option to enter your main python script
streamlit run main.py
The moment you start Streamlit for the first time, you will be prompted to enter your email address. To receive regular Streamlit updates, enter your email address or press ENTER to skip it. To view your deployed web application, visit your server’s IP address at the default Streamlit port, 8501. For example: