معرفی شرکت ها


dash-component-editor-0.0.6


Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر
Card image cap
تبلیغات ما

مشتریان به طور فزاینده ای آنلاین هستند. تبلیغات می تواند به آنها کمک کند تا کسب و کار شما را پیدا کنند.

مشاهده بیشتر

توضیحات

-
ویژگی مقدار
سیستم عامل -
نام فایل dash-component-editor-0.0.6
نام dash-component-editor
نسخه کتابخانه 0.0.6
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Zhuowen (Kevin) Zhao, Ronald Pandolfi
ایمیل نویسنده zwenzhao11@gmail.com
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/dash-component-editor/
مجوز -
# MLExchange Dash component editor This script creates adaptive Dash GUI components from keyword pairs (JSON format). It currently supports 8 types of Dash GUI components: 3 types of [input forms](https://dash-bootstrap-components.opensource.faculty.ai/docs/components/input/) (int, float, str), [slider](https://dash.plotly.com/dash-core-components/slider), [dropdown](https://dash.plotly.com/dash-core-components/dropdown), [radio items](https://dash.plotly.com/dash-core-components/radioitems), [boolean toggle switch](https://dash.plotly.com/dash-daq/toggleswitch), and [image](https://dash.plotly.com/dash-html-components/img). The corresponding keyword values are 'int', 'float', 'str', 'slider', 'dropdown', 'radio', 'bool', and 'img'. Legal keyword pairs: {'type': xxx, 'name': xxx, 'title': xxx, 'param_key': xxx, 'value': xxx} and all the other legal keyword pairs in the corresponding Dash components. **Note**: 'name' is the unique string identifier for each component. ## Dependencies: ``` dash>=2.9.0 dash_bootstrap_components>=1.0.0 dash_daq>=0.1.0 ``` ## Code example ```python from dash import Dash, html, Input, Output from dash_component_editor import JSONParameterEditor # data component_kwargs = {"gui_parameters": [{"type": "int", "name": "num-tree", "title": "Number of Trees", "param_key": "n_estimators", "value": "30"}, {"type": "dropdown", "name": "dropdown-menu", "title": "Choose a City", "param_key": "city", "options": [{'label': 'New York City', 'value': 'New York City'}, {'label': 'Montreal', 'value': 'Montreal'}, {'label': 'San Francisco', 'value': 'San Francisco'}], "value": "'Montreal"}, {"type": "slider", "name": "slider-id", "title": "Fahrenheit Range", "param_key": "f_temp", "min": 0, "max": 10, "step": None, "marks": {0: '0°F', 3: '3°F', 5: '5°F', 7.65: '7.65°F', 10: '10°F'}, "value":5}, ] } # set up Dash server and web layouts app = Dash(__name__) app.layout = html.Div ([html.Button('Show GUI', id='button', n_clicks=0), html.Div(id='gui-layout', children=[]) ]) # callback @app.callback( Output("gui-layout", "children", allow_duplicate=True), Input("button", "n_clicks"), prevent_initial_call=True ) def show_gui_layouts(n_clicks): item_list = JSONParameterEditor(_id={'type': 'parameter_editor'}, json_blob=component_kwargs["gui_parameters"], ) item_list.init_callbacks(app) return [html.H5("GUI Layout", className="card-title"), item_list] app.run_server(host='0.0.0.0', port=8050, debug=True) ```


نیازمندی

مقدار نام
>=2.9.0 dash
>=1.0.0 dash-bootstrap-components
>=0.1.0 dash-daq


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

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


نحوه نصب


نصب پکیج whl dash-component-editor-0.0.6:

    pip install dash-component-editor-0.0.6.whl


نصب پکیج tar.gz dash-component-editor-0.0.6:

    pip install dash-component-editor-0.0.6.tar.gz