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 […]
Python libraries for web applications (Flask and Django) – Getting to Know Streamlit – A Brief Overview
Python libraries for web applications (Flask and Django) Here’s an overview of some popular Python libraries for building web applications: Let’s look at some situations when we should use Flask: Let’s look at some situations when we should use Django: In summary, choose Flask for small to mid-sized web apps and Django for large, complex […]
IDE selection – Setting Up the Python Coding Environment
IDE selection Having a good IDE is very important for coding in Python. It provides many useful features that help you write code faster and with fewer errors, and keeps your code clean and well organized. For example, the autocomplete feature saves a lot of time by suggesting code completions as you type. This reduces […]
Installing and launching Streamlit – Exploring Streamlit’s Features and Functionality
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 […]
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 […]
DataFrames, plots, and visualizations – Exploring Streamlit’s Features and Functionality
DataFrames, plots, and visualizations Now, it’s time to deal with DataFrames, so let’s comment on something and continue exploring widgets. DataFrame is the name that the pandas library gives to its data. When a file, such as a CSV file, is imported into pandas, the result will be a DataFrame. We can think of a […]
Date, time, and more – Exploring Streamlit’s Features and Functionality
Date, time, and more Another very useful element that we can manage out of the box in Streamlit is date and time – that is, dates, hours, and so on. For example, to print today’s date on the screen, we just have to write the following:import datetimetoday = st.date_input(“Today is”,datetime.datetime.now()) Here, the first line simply […]
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. […]
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 […]
Building the menu and adding decorations – Streamlit Essentials – Configuring the Environment, Managing Packages, and More
Building the menu and adding decorations NLP Web App might be a good title for our application, but to be honest, it’s just some black text on a white background, so it’s not very appealing at the moment. One of the greatest features of Streamlit is that we can use HTML very easily. So, let’s […]