Streamlit features and widgets
The very first step has been completed: Streamlit is up and running. What we need to do now is add text, widgets, elements, and more to make something beautiful that also works correctly.
To start populating our web app with nice and useful widgets, we need to write some Python code. The best way to do this is to put Sublime Text and our browser side by side, as shown in the following screenshot:
Figure 3.6: Sublime Text and a browser side by side
This kind of visualization is very convenient because we can immediately see any change we make to the code (in real time, as soon as we save our code changes), in our editor directly, in the browser by just selecting Always Rerun from the top-right menu of our web application:
Figure 3.7: Code changes and Always Rerun
So, let’s import Streamlit (with st
as the alias) and start dealing with some text. We can write the following:
import...