Skip to main content

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


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 details)

Uploaded Source

Built Distribution

stlite_sandbox-0.2.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file stlite-sandbox-0.2.1.tar.gz.

File metadata

  • Download URL: stlite-sandbox-0.2.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for stlite-sandbox-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d602cdaeed7cfc39575fc5ea2e3a20dcee2a09bb705d6ccc0c702d9d9f992e40
MD5 499bb5b05da64251bf1835ade9afbfb1
BLAKE2b-256 0c032d0445a34ef945f6b4e60d35856089bf403fc177c889aad11a7410090391

See more details on using hashes here.

File details

Details for the file stlite_sandbox-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for stlite_sandbox-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7a7b9c618cf22fe511b1a9a991a12e1a9dc8968528f36afbdbce62b72656b8b8
MD5 d2e7cfb341d967a404215dc23795b9de
BLAKE2b-256 1a7ae3d7480e8514757fc55c3d4b8b388337fbcce0e985a3f5c3fffcea74b613

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page