liveBook · Manning

St.info

As explained in Build Python Web Apps with Streamlit

st.info is a Streamlit output element that displays an informational message with informational semantic styling.

st.info displays text in a colored informational box. Its blue styling makes it useful for showing temporary diagnostic values directly in a Streamlit app, where ordinary print statements do not appear in the browser. section 4.2.2

Inspecting a task list

Place the element before the display logic: st.info(f"task_list: {task_list}"). The app then shows values such as task_list: [] or the current Task instance, helping reveal whether task storage or rendering is failing. section 4.2.2 section 4.3.3

st.info(f"task_list: {task_list}")

Browse the minimal diagnostic statement used to display the current task_list value in the app. section 4.2.2

Use st.info while troubleshooting unexpected results, then remove or replace temporary diagnostics when the app’s behavior is understood. In a rerun-based app, the displayed value helps expose variables that reset between interactions. section 4.6 section 4.3.3

How Build Python Web Apps with Streamlit covers it

How deep it goes
Explains display behavior and applies it to task-list debugging, but does not detail the element’s implementation internals.
Examples
Shows task_list: [] and a Task instance while diagnosing a disappearing-task problem.
What it assumes
Assumes a Streamlit app and basic variables, while contrasting app-visible output with print statements, IDE debuggers, and pdb.
What you can do after
Diagnose/debug with it by displaying runtime values inside the Streamlit browser interface.
How it connects
Connects st.info with Streamlit reruns, st.session_state, st.rerun, widgets, and debugging.

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.