Self-building streamlit app | Setup-free experiments

Streamlit page that’s building itself with custom code editor provided. Made just for fun as a proof of concept – apps that are created within themselves. However, can be useful for quick experimentations from anywhere without any setup needed.

Also, this concept can be used for apps, where particular business/rendering logic is unknown until runtime, so cannot be stored in a code form on github.

Thanks for @bouzidanas for streamlit-code-editor

4 Likes

Looks really cool!

Im curious as to how you achieved this. Is the code executed in a sandbox?

1 Like

Nope, here I just directly exec the code in streamlit_app.py file, so it’s unsafe. I would expect this feature enabled only for trusted users or in safe environment with nothing to expose

1 Like

Ops, I’ve forgotten to add the link :clown_face: Updated