Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/blackary/stlite-dynamic-sandbox


https://github.com/blackary/stlite-dynamic-sandbox

Last synced: 19 days ago
JSON representation

Awesome Lists containing this project

README

        

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