Week 14 — Lesson 1: Streamlit in 20 lines

2 min

Until now your NorthPeak scripts printed to the terminal. A technician will not open a terminal. Streamlit turns a plain Python script into a web page with almost no new code, and re-runs the whole script every time the user touches a control. This lesson covers the widgets, the streamlit run command, and the re-run rule that explains why caching matters.

A script that becomes a page

Until now your scripts printed to the terminal. A technician will not open a terminal. Streamlit gives you a page with almost no new code. You replace print with st.write. You add a selector with st.selectbox. You run the file with streamlit run instead of python.

Preview — the rest of the lesson is for enrolled readers.

Already enrolled with a code?

Your access is tied to your account, not to this link. Sign in with the same email you used in class: your course is waiting, no need to enter the code again.

Sign inNo account yet? Create one
This lesson is part of the “Week 14 — Diagnostic application integration” module

The first modules of the course are open to everyone. For the rest you have three options: buy this course once and for all, subscribe, or enter the code handed out in class.

Are you a student on this course?

The code is tied to your account: sign in or create an account and it will be applied automatically when you come back.

No account yet? Create one