當前位置: 首頁>>代碼示例>>Python>>正文


Python dash_html_components.Br方法代碼示例

本文整理匯總了Python中dash_html_components.Br方法的典型用法代碼示例。如果您正苦於以下問題:Python dash_html_components.Br方法的具體用法?Python dash_html_components.Br怎麽用?Python dash_html_components.Br使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在dash_html_components的用法示例。


在下文中一共展示了dash_html_components.Br方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: prepare_send

# 需要導入模塊: import dash_html_components [as 別名]
# 或者: from dash_html_components import Br [as 別名]
def prepare_send():
    lCache = []
    cData = get_All_data()
    for pair in PAIRS:
        ticker = pair.ticker
        exchange = pair.exchange
        graph = 'live-graph-' + exchange + "-" + ticker
        lCache.append(html.Br())
        if (pair.Dataprepared):
            lCache.append(dcc.Graph(
                id=graph,
                figure=cData[exchange + ticker]
            ))
        else:
            lCache.append(html.Div(id=graph))
    return lCache


# links up the chart creation to the interval for an auto-refresh
# creates one callback per currency pairing; easy to replicate / add new pairs 
開發者ID:pmaji,項目名稱:crypto-whale-watching-app,代碼行數:22,代碼來源:app.py

示例2: display_hoverdata

# 需要導入模塊: import dash_html_components [as 別名]
# 或者: from dash_html_components import Br [as 別名]
def display_hoverdata(hoverData, clickData):
    return [
        json.dumps(hoverData, indent=2),
        html.Br(),
        json.dumps(clickData, indent=2)
    ] 
開發者ID:plotly,項目名稱:dash-recipes,代碼行數:8,代碼來源:heatmap-custom-data.py

示例3: update_output

# 需要導入模塊: import dash_html_components [as 別名]
# 或者: from dash_html_components import Br [as 別名]
def update_output(angle, force):
    return ['Angle is {}'.format(angle),
            html.Br(),
            'Force is {}'.format(force)] 
開發者ID:plotly,項目名稱:dash-docs,代碼行數:6,代碼來源:joystick.py

示例4: show_selected_atoms

# 需要導入模塊: import dash_html_components [as 別名]
# 或者: from dash_html_components import Br [as 別名]
def show_selected_atoms(atom_ids):
    if atom_ids is None or len(atom_ids) == 0:
        return 'No atom has been selected. Click somewhere on the molecular \
        structure to select an atom.'
    return [html.Div([
        html.Div('Element: {}'.format(model_data['atoms'][atm]['element'])),
        html.Div('Chain: {}'.format(model_data['atoms'][atm]['chain'])),
        html.Div('Residue name: {}'.format(model_data['atoms'][atm]['residue_name'])),
        html.Br()
    ]) for atm in atom_ids] 
開發者ID:plotly,項目名稱:dash-docs,代碼行數:12,代碼來源:molecule-3d-viewer.py

示例5: getHeader

# 需要導入模塊: import dash_html_components [as 別名]
# 或者: from dash_html_components import Br [as 別名]
def getHeader(app):
    # this is a mess;
    inlineBlock = {"display": "inline-block"}
    headerWidgets = [
        html.Button("Refresh", id='refresh-button'),
        html.Div(
            [
                html.Div("Last refresh @ ", style=inlineBlock.update({"float": "left"})),
                html.Div(datetime.datetime.now(),
                         id='last-refresh', className="showTime",
                         style=inlineBlock.update({"float": "left"})),

                html.Div("%s Start time" % app.startTime,
                         id='start-time', className="showTime",
                         style=inlineBlock.update({"float": "right"})),
                html.Br(),
                html.Center([
                    html.Div(app.epochInfo, id="current-epoch")
                    ])
            ], className="showTime")
    ]

    pageMenu = [
        html.A(html.Button("Evolution Statistics"), href="/"),
        html.A(html.Button("Evaluation Breaks"), href="/evalbreak"),
        html.A(html.Button("View Results"), href="/results")
        # html.Button("View Settings", className="unimplemented"),
        # html.Button("Inspect Population", className="unimplemented")
    ]



    # html.Link(rel='stylesheet', href='/static/promoterz_style.css'),
    header = html.Div(
        [
            html.H2(
                app.webpageTitle,
                style={'padding-top': '20', 'text-align': 'center'},
            ),
            html.Div(headerWidgets),
            html.Div(pageMenu),
        ],
        style=allStyle)

    return header 
開發者ID:Gab0,項目名稱:japonicus,代碼行數:47,代碼來源:layout.py


注:本文中的dash_html_components.Br方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。