コード例 #1
0
ファイル: run.py プロジェクト: RGank/HanzeSunSensor
from myproject.app import app

if __name__ == '__main__':
    app.run_server(debug=True)

#lettertype sans serif of calibri
コード例 #2
0
ファイル: run.py プロジェクト: Arceden/HanzeSunSensor
from myproject.app import app

# runs the server
if __name__ == '__main__':
    app.run_server(debug=True, use_reloader=False)
コード例 #3
0
ファイル: run.py プロジェクト: DOCraven/GRAPHY_SIMPLE

### CALLBACK TO SAVE WHOLE YEAR LOAD SHIFTED FILE ###
@app.callback(dash.dependencies.Output('Yearly_File_Saved_Output', 'children'),
              [dash.dependencies.Input('Yearly_Save', 'n_clicks')])
# [dash.dependencies.State('input-box', 'value')])
def update_output(n_clicks):
    if n_clicks is not None:
        dataframe_saver(
            time_frame='Yearly'
        )  #save the dataframe as a csv file, does not have a time index, so will have to recreate that

        return 'Yearly File Saved'


######### CALLBACK FOR MONTH DROP DOWN BOX IN SITE GRAPGHS (TAB 1) ######
@app.callback(
    dash.dependencies.Output('tab1_month_selection_output', 'children'),
    [dash.dependencies.Input('tab1_month_selection', 'value')])
def update_output(value):
    return (value)  #ie, what is selected via the drop down box


if __name__ == '__main__':
    port = int(os.environ.get('PORT', 5000))
    app.run_server(
        debug=True,
        # port=port, #for development server comment this line out
        # host='0.0.0.0' #and this line out
    )
コード例 #4
0
from myproject.app import app

if __name__ == '__main__':
    app.run_server(host="0.0.0.0", port="8080", debug=True)