Update main.py

main
marcgauch 2023-06-03 13:36:23 +02:00
parent 1ceea5c614
commit 74af4c4018
1 changed files with 2 additions and 1 deletions

View File

@ -172,7 +172,7 @@ def update_graph_2(min_value):
fig.update_layout(template="plotly_white")
return fig
# 7a
@app.callback(Output("graph_69", "figure"), Input("graph_2", "relayoutData"))
def update_graph_2(selected_data):
if selected_data is None or (
@ -198,6 +198,7 @@ def update_graph_2(selected_data):
Input("slider_1", "value"),
)
def update_graph_3_and_4(selected_data, sliderValue):
## 7b
# forcing update of x, y and cluster_df with the proper am
X, y = make_blobs(
n_samples=100 * sliderValue, centers=sliderValue, n_features=2, random_state=0