Created
March 21, 2022 17:11
-
-
Save kshirsagarsiddharth/a858be858ac60a58e384660e952cab3e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
app = JupyterDash(__name__) | |
app.layout = html.Div([ | |
dcc.Slider( | |
min = df['km_traveled'].min(), | |
max = df['km_traveled'].max(), | |
value = 100.0, | |
id = 'km-travelled-slider' | |
), | |
html.Div(id = 'slider-output-container') | |
]) | |
@app.callback( | |
Output('slider-output-container','children'), | |
Input('km-travelled-slider','value') | |
) | |
def update_output(value): | |
return 'You have selected "{}"'.format(value) | |
#app.run_server(mode = "inline") | |
app.run_server() | |
#Dash app running on http://127.0.0.1:8050/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment