how to use stlite-sandbox inside the streamlit.io
To upload files, please first save the app
import streamlit as st
import streamlit.components.v1 as components
st.title("Embedded stlite-sandbox Demo")
# Create the HTML component with the stlite-sandbox iframe
components.html(
"""
<iframe
src="https://edit.share.stlite.net/"
width="100%"
height="600px"
frameborder="0"
></iframe>
""",
height=650,
)
st.markdown("""
### About stlite-sandbox
This demo embeds the stlite-sandbox editor directly in your Streamlit app.
stlite-sandbox is a web-based environment where you can:
1. Write and test Streamlit code directly in the browser
2. Share your Streamlit apps easily
3. Experiment with Streamlit features without installing anything
The embedded editor above is fully functional and you can use it to create and test
Streamlit apps right here!
""")
Hi! I can help you with any questions about Streamlit and Python. What would you like to know?