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.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: stlite-sandbox-0.2.0.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.0.tar.gz
Algorithm Hash digest
SHA256 8f67eb7a7f4aafb4a8eaf4b5a5f8041243ddc5202976479af464a2f6962fa644
MD5 a0e08364b10d46366bcd5fcd3a7986d6
BLAKE2b-256 76b08b0b6f5f3305dd392a79b156349c9c5c349beada016b16b38a2f21c7868d

See more details on using hashes here.

Provenance

File details

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

File metadata

File hashes

Hashes for stlite_sandbox-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9bd22441efe151236f01405357400e411cefee8a1e8729ef0f8380cbe0258b17
MD5 7946635e04e0ca3e6140112e8f885ad6
BLAKE2b-256 d06bb2fb1ee3eb82f971167bf5691d7a07993e66099bbbb54d53442983eaef45

See more details on using hashes here.

Provenance

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