liveBook · Manning

Python

As explained in Build Python Web Apps with Streamlit

Python is a general-purpose, high-level programming language widely used for software development and artificial intelligence.

Python is a high-level programming language used to build software and work with data. In Streamlit, Python code can produce rich web applications without requiring separate HTML, CSS, or JavaScript expertise. section 1.3.1

A practical workflow starts with a Python file, imports Streamlit, and runs the file with streamlit run. Editing the file and rerunning the app gives immediate feedback in a browser. section 2.6 section 3.6.1

Python connects directly to visible application behavior:

  • Use st.radio to store a user's single choice in a Python variable. section 3.6.1
  • Convert text input to a number with float before using the value. section 3.6.1
  • Use Python context managers, such as with st.sidebar, to place interface elements in a sidebar. section 3.6.1

A small Python-powered interface

import streamlit as st quantity = st.sidebar.radio("Select a quantity", ["Mass", "Length", "Time"]) st.title("Unit Converter") input_num = float(st.text_input("Value to convert", value="0")) if st.button("Convert"): pass section 3.6.1

Figure 1.2 Streamlit unlocks web app development for anyone who knows Python and helps even full-stack developers prototype and build faster.

Shows how Python knowledge opens web application development while reducing dependence on a separate web-language stack. section 1.3.1

How Build Python Web Apps with Streamlit covers it

How deep it goes
Demonstrates files, imports, variables, conversion, context managers, widgets, and reruns through an incremental interface, not language internals.
Examples
Uses a Streamlit unit converter with radio buttons, text input, dropdowns, columns, a sidebar, and a conversion button.
What it assumes
Assumes basic Python familiarity while teaching the surrounding Streamlit workflow and requiring Python 3.9 or later.
What you can do after
Build a small browser-based interface, run it with Streamlit, and connect user controls to Python variables.
How it connects
Connects Python with Streamlit, HTML, CSS, JavaScript, virtual environments, version control, and integrated development tools.

Also explained in

Compare how 26 books explain Python →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build Python Web Apps with Streamlit. The section links point to the parts of the book it draws on.