The importance of turning an idea into a prototype – the changing scenario in computing methods Computing has advanced dramatically over the past few decades. Earlier systems relied on programs that were installed and run on individual personal computers. Users would purchase software licenses, install the programs themselves, and then access those applications from their […]
Examples of Streamlit’s capabilities – Getting to Know Streamlit – A Brief Overview
Examples of Streamlit’s capabilities Here are some useful examples of Streamlit’s capabilities: Streamlit is incredibly versatile and can help us create more or less any kind of application we have in mind in quite a short time and with an affordable effort. Considering this enormous point of strength, let’s understand why turning our ideas into […]
What is a virtual environment? 2 – Setting Up the Python Coding Environment
All the reasons mentioned in the preceding list are enough to make pipenv our choice for the management and creation of virtual environments. Now, we’ll proceed with the pipenv installation and with the description of its main commands. We can install pipenv together with pipenv-pipes by just typing the following command:sudo python3 –m pip install […]
Streamlit features and widgets – Exploring Streamlit’s Features and Functionality
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. […]
Inputting text and numbers – Exploring Streamlit’s Features and Functionality
Inputting text and numbers Another extremely useful function in our web application is inputting, which is the process of entering some information. In this case, we have many widgets available out of the box. In the text_input widget, we only have to specify a label or caption and a placeholder – very easy!Name = st.text_input(“Your […]
Configuring our environment – Streamlit Essentials – Configuring the Environment, Managing Packages, and More
Configuring our environment We are finally here and building our first web application from scratch! From scratch means working from the beginning, even before an empty Python file. The approach is easy – we start by sitting and coding together. Let’s start by creating our virtual environment, which is dedicated exclusively to this new app […]
App skeleton building 2 – Streamlit Essentials – Configuring the Environment, Managing Packages, and More
Now, save the app.py file and click on Always rerun in the web app (in the top-right corner); in this way, all the new lines of code will be immediately executed as soon as we save them. As shown in Figure 4.11, we have added the menu on the left-hand side of our web app. […]
App skeleton building – Streamlit Essentials – Configuring the Environment, Managing Packages, and More
App skeleton building First of all, we need a main function – a function that contains all the business logic of our app and the frontend too. This is the power of Streamlit – building the frontend directly inside Python code. There’s no need for different programming languages, files, and so on; everything is in […]
Building the menu and adding decorations 2 – Streamlit Essentials – Configuring the Environment, Managing Packages, and More
set_page_config accepts a certain number of arguments, as follows: You can experiment with different configurations and easily find information on how to use each instruction in Streamlit’s Documentation section, which includes input arguments and output results. The following screenshot explains the set_page_config() instruction. As you can see, there are several different configurations that we didn’t […]
Organizing and arranging content in a web app – Organizing and Displaying Content with Columns, Expanders, and NLP Techniques
Organizing and arranging content in a web app In Chapter 4, we built the foundations of our first web application and wrote some Python code that, once executed, gives us the following result: Figure 5.1: Chapter 5 starting point We completed the About section, made some decorations in terms of colors, and added an icon […]