semvec/pypi-packages huggingface dataset:
stlite-sandbox 0.2.1
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.
Requires Python: >=3.7

# 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

```sh
pip install stlite-sandbox
```

## Usage instructions

```python
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)
```