Installing and launching Streamlit
Finally, we are ready to write our code to create beautiful web applications! Where do we start? The first thing we must do is install Streamlit.
So, let’s create a new directory – we will call it streamlit_course
. Once you’re inside it, prepare a new virtual environment by typing the well-known pipenv shell
command. Once you are done running the pipenv shell
command, you will get the following output:
Figure 3.1: The streamlit_course virtual environment creation
Installing Streamlit is very easy – it’s a matter of using a simple instruction, as indicated on its official website (www.streamlit.io):
Figure 3.2: Installing Streamlit
Since we are using pipenv
and the streamlit_course
virtual environment that we just created, we have to modify the instruction suggested in Figure 3.2 slightly, like so:
pipenv install streamlit
You will get the following...