Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/blackary/stlite-dynamic-sandbox
https://github.com/blackary/stlite-dynamic-sandbox
Last synced: 19 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/blackary/stlite-dynamic-sandbox
- Owner: blackary
- License: mit
- Created: 2023-10-03T14:00:45.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-07T18:07:44.000Z (about 1 month ago)
- Last Synced: 2024-10-11T09:32:37.952Z (about 1 month ago)
- Language: Python
- Size: 48.8 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 stfrom stlite_sandbox import stlite_sandbox
code = """import streamlit as st
st.write("Hello, world!")
"""stlite_sandbox(code, height=500, editor=True)
```