streamlit-code-editor-0.1.9


توضیحات

React-ace editor customized for Streamlit
ویژگی مقدار
سیستم عامل -
نام فایل streamlit-code-editor-0.1.9
نام streamlit-code-editor
نسخه کتابخانه 0.1.9
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Anas Bouzid
ایمیل نویسنده anasbouzid@gmail.com
آدرس صفحه اصلی https://github.com/bouzidanas/streamlit-code-editor
آدرس اینترنتی https://pypi.org/project/streamlit-code-editor/
مجوز -
streamlit code editor ============ A code editor component for streamlit.io apps, built on top of react-ace, with custom themes and customizable interface elements. ## Installation Install streamlit-code-editor with pip: ```bash pip install streamlit_code_editor ``` ## Usage To add a Code Editor to Streamlit python app, import `code_editor` and then call the `code_editor` function with the code you want to edit (as a string): ```python import streamlit as st from code_editor import code_editor response_dict = code_editor(your_code_string) ``` Without specifying a language, the editor will default to `python`. You can also specify a language with the `lang` argument: ```python # The default value for the lang argument is "python" response_dict = code_editor(your_code_string, lang="javascript") ``` By default, each code editor is styled like streamlit's code component. We will go over how to customize the styling in a later section. ## Docs [![Component Guide](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://code-editor-documentation.streamlit.app/) ## Demo [![Component Demo](https://static.streamlit.io/badges/streamlit_badge_black_white.svg)](https://bouzidanas-streamlit-i-streamlit-code-editorexamplesdemo-lq20k3.streamlit.app/)


نیازمندی

مقدار نام
- streamlit>=0.63


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl streamlit-code-editor-0.1.9:

    pip install streamlit-code-editor-0.1.9.whl


نصب پکیج tar.gz streamlit-code-editor-0.1.9:

    pip install streamlit-code-editor-0.1.9.tar.gz