Skip to main content

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)

Metadata

Release files for stlite-sandbox 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for stlite-sandbox 0.2.1
File Size Uploaded
stlite-sandbox-0.2.1.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for stlite-sandbox 0.2.1
File Interpreter ABI Platform
stlite_sandbox-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 kB

Release files / stlite-sandbox-0.2.1.tar.gz

Download URL stlite-sandbox-0.2.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d602cdaeed7cfc39575fc5ea2e3a20dcee2a09bb705d6ccc0c702d9d9f992e40
BLAKE2b-256 checksum
How to use checksums
0c032d0445a34ef945f6b4e60d35856089bf403fc177c889aad11a7410090391
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Release files / stlite_sandbox-0.2.1-py3-none-any.whl

Download URL stlite_sandbox-0.2.1-py3-none-any.whl
Size 6.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7a7b9c618cf22fe511b1a9a991a12e1a9dc8968528f36afbdbce62b72656b8b8
BLAKE2b-256 checksum
How to use checksums
1a7ae3d7480e8514757fc55c3d4b8b388337fbcce0e985a3f5c3fffcea74b613
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/4.0.2 CPython/3.11.7

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page