Skip to main content

Streamlit component that allows you add an stlite sandbox into your streamlit app. Comes with a built-in editor to allow you to change the code and see what happens.

Project description

stlite-sandbox

Streamlit component that allows you to create an stlite sandbox inside your streamlit app, and change the code without requiring the whole component to be reloaded. Comes with an (optional) built-in editor using streamlit-monaco so you can quickly play with your code and see what happens.

Installation instructions

pip install stlite-sandbox

Usage instructions

import streamlit as st

from stlite_sandbox import stlite_sandbox

code = """import streamlit as st

st.write("Hello, world!")
"""

stlite_sandbox(code, height=500, editor=True)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

stlite-sandbox-0.2.1.tar.gz (5.6 kB view hashes)

Uploaded Source

Built Distribution

stlite_sandbox-0.2.1-py3-none-any.whl (6.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page