streamlit-code-editor
React-ace editor customized for Streamlit
What it is and what it does
streamlit-code-editor provides a code editor widget for Streamlit applications. It allows developers to embed an interactive, syntax-highlighted code input field in their Streamlit apps, with support for multiple programming languages and custom styling. The editor returns a response dictionary containing the edited code and related metadata.
The package is designed for Streamlit-based tools that need users to input, edit, or review code interactively. It has a single runtime dependency on streamlit and requires Python 3.6 or later. The aging maintenance status and unclear license mean you should verify its suitability for your use case before committing to it in production.
Use it for:
- Build interactive code playgrounds or tutorials where users can edit code snippets within a Streamlit app.
- Create configuration interfaces that accept code input for custom logic or queries.
- Develop educational tools or coding challenge platforms that collect code submissions from learners.
- Add code editing to data science dashboards for users to modify analysis scripts on the fly.
- Prototype internal tools that need syntax-aware code input without building a full IDE.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Embeds an interactive code editor component into Streamlit apps, with support for multiple languages and customizable themes.
Yes, if you need a code editor widget for a Streamlit app and can accept aging maintenance. The package has low install friction, no known vulnerabilities, and reasonable download volume. However, verify the unclear license status before production use, and be aware that updates are infrequent—check the repository first if you need active support or specific features.
Install
streamlit-code-editor on PyPI
pip
pip install streamlit-code-editoruv
uv add streamlit-code-editorpoetry
poetry add streamlit-code-editorInstalling streamlit-code-editor
Before you install
Low friction install with a single runtime dependency on streamlit. Maintenance status is aging—last commit was 2025-07-23 and the package has not received a release in several months, though the repository remains active and not archived.
License in practice
License status is unclear; no SPDX identifier or raw license text is available. Before relying on this package in production or commercial work, verify the actual license terms directly from the repository.
Quickstart
pip install streamlit-code-editor
import streamlit as st
from streamlit_code_editor import code_editor
response_dict = code_editor("print('hello')")
Requires streamlit to be installed and a Streamlit app context to run.
Verify before relying
- Exact scope of customizable interface elements and theme options beyond the description excerpt.
- Whether the package is actively maintained or in maintenance-only mode given aging status.
- Performance characteristics with large code blocks or concurrent editors.
- How language specification beyond Python is implemented and what languages are supported.
Package facts
| License | not declared (unclear) |
| Python support | supports the current Python release (>=3.6) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 1 — streamlit |
| Maintenance | aging — 593 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 296,815/month — #7,893 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: streamlit_code_editor-0.1.22-py3-none-any.whl
Tags
More Application Frameworks packages
FastAPI is a Python web framework for building…
permissive · top 100 on PyPI
annotated-docProvides a way to document function parameters,…
permissive · top 100 on PyPI
textualTextual is a Python framework for building…
permissive · top 100 on PyPI
typerTyper builds command-line applications from…
permissive · top 1,000 on PyPI
mcpBuild and connect to Model Context Protocol…
permissive · top 1,000 on PyPI
WerkzeugWerkzeug is a WSGI utility library providing…
permissive · top 1,000 on PyPI
streamlit-aceEmbeds an Ace code editor component into…
permissive · top 15,000 on PyPI
streamlit-embedcodeEmbeds code snippets from external services…
unclear · top 15,000 on PyPI
streamlit-quillEmbeds a React Quill rich-text editor component…
unclear · top 15,000 on PyPI
streamlit-toggle-switchAdds a customizable toggle switch component to…
unclear · top 15,000 on PyPI
streamlit-antd-componentsProvides Ant Design and Mantine UI components…
unclear · top 15,000 on PyPI
streamlit-javascriptExecutes arbitrary JavaScript code from within…
permissive · top 15,000 on PyPI
st-annotated-textDisplays annotated text with labels and…
permissive · top 15,000 on PyPI
streamlitStreamlit transforms Python scripts into…
permissive · top 1,000 on PyPI
streamlit-avatarRenders clickable avatar icons with images,…
unclear · top 15,000 on PyPI
streamlit-extrasProvides a collection of reusable UI components…
permissive · top 15,000 on PyPI