Spaces:
Runtime error
Runtime error
Download src/pages/layout_example.py from kxm86/spring-2026-is445-example: direct link, hf CLI and curl.
- Browser
- Download file 501 Bytes
-
https://huggingface.co/spaces/kxm86/spring-2026-is445-example/resolve/main/src/pages/layout_example.py
- Command line
-
hf download hf://spaces/kxm86/spring-2026-is445-example/src/pages/layout_example.py
-
curl -L -o layout_example.py https://huggingface.co/spaces/kxm86/spring-2026-is445-example/resolve/main/src/pages/layout_example.py
501 Bytes
| import streamlit as st | |
| import time | |
| # st.logo("") | |
| c = st.container() | |
| st.markdown(""" | |
| section | |
| --- | |
| another | |
| """) | |
| st.divider() | |
| col1, col2 = st.columns(2) | |
| col1.write("Hi") | |
| col2.write("there") | |
| with col1: | |
| st.write("This is col1") | |
| with col2: | |
| st.write("Another col2") | |
| with col1: | |
| st.write("again?") | |
| "magic" | |
| c.write("Writing into the container") | |
| time.sleep(3) | |
| st.write("At the end...") | |
| c.write("At the top...") |