liveBook · Manning

Execution environment

As explained in Build Python Web Apps with Streamlit

A development environment is the collection of software tools, runtimes, and configurations used to create and test software.

An execution environment is the collection of tools and settings used to create, test, and run an application. For a Streamlit project, it includes version control, a code editor, Python virtual environments, dependencies, and the Streamlit runtime. section 2.0 section 2.2

A reliable environment supports the full development workflow:

  • Use Git to track application code and changes. section 2.0
  • Choose an editing tool and isolate project dependencies with virtual environments. section 2.2
  • Keep development and production environments aligned so dependency differences do not break the app. section 5.4.1

Matching development and production

A Streamlit app using requests may work locally with requests 2.1.1 but fail in production with version 2.0.5. Pin compatible versions in requirements.txt and install them with pip install -r requirements.txt. section 5.4.1

Listing 5.5 A strict requirements.txt file
requests==2.31.0
streamlit==1.34.0

A strict requirements.txt example shows how to pin the exact requests and Streamlit versions used by the application. section 5.4.1

How Build Python Web Apps with Streamlit covers it

How deep it goes
Explains setup choices and dependency alignment, but stops short of detailed runtime internals.
Examples
Uses a Streamlit password checker, requirements.txt files, and mismatched requests versions as concrete examples.
What it assumes
Assumes basic Python application work while introducing environment setup for less experienced developers.
What you can do after
Configure and reproduce a Streamlit environment across development and Streamlit Community Cloud.
How it connects
Connects version control, code editors, virtual environments, dependencies, and deployment.

Also explained in

Compare how 3 books explain execution environment →

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.