diff --git a/content/posts/2024-data-webapps-with-streamlit/index.md b/content/posts/2024-data-webapps-with-streamlit/index.md index 229a3af..1c3669d 100644 --- a/content/posts/2024-data-webapps-with-streamlit/index.md +++ b/content/posts/2024-data-webapps-with-streamlit/index.md @@ -1,6 +1,6 @@ +++ title = "Quick and easy data web apps in Python with Streamlit" -date = "2024-04-01" +date = "2024-04-08" draft = true [extra] @@ -10,7 +10,7 @@ comment = true tags=["python"] +++ -I recently switched jobs (from one IT consultancy to another, smaller one). +I pretty recently switched jobs (from one IT consultancy to another). This also meant switching client project, and subsequently I would be working with another tech stack than what I had been using the last few years. I was going from microservices in csharp/.NET to "data apps" with Python, Pandas and Streamlit. @@ -48,7 +48,26 @@ pip install -r requirements.txt ### Create initial Streamlit app -TODO +Create a file application.py with the following content: + +```python +import streamlit as st + +st.title("Streamlit demo") +``` + +Run with + +```bash +streamlit run application.py +``` + +This should open up the app in your default web browser: + +![initial streamlit app in web browser](initial_streamlit_browser.png) + +That's the "Hello world" of Streamlit applications. +Now we're ready to explore some more features 😄. ### Dataframes diff --git a/content/posts/2024-data-webapps-with-streamlit/initial_streamlit_browser.png b/content/posts/2024-data-webapps-with-streamlit/initial_streamlit_browser.png new file mode 100644 index 0000000..caf8c08 Binary files /dev/null and b/content/posts/2024-data-webapps-with-streamlit/initial_streamlit_browser.png differ