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
Release history Release notifications | RSS feed
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)
Built Distribution
Close
Hashes for stlite_sandbox-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7a7b9c618cf22fe511b1a9a991a12e1a9dc8968528f36afbdbce62b72656b8b8 |
|
MD5 | d2e7cfb341d967a404215dc23795b9de |
|
BLAKE2b-256 | 1a7ae3d7480e8514757fc55c3d4b8b388337fbcce0e985a3f5c3fffcea74b613 |