Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 5, 2025
1 parent 7285a39 commit b43049f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
18 changes: 10 additions & 8 deletions vizro-core/examples/scratch_dev/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
from vizro.managers import data_manager


static_df = pd.DataFrame({
"species": ["artificial_species", "artificial_species", "artificial_species"],
"sepal_width": [4, 5, 6],
"sepal_length": [4, 5, 6],
})
static_df = pd.DataFrame(
{
"species": ["artificial_species", "artificial_species", "artificial_species"],
"sepal_width": [4, 5, 6],
"sepal_length": [4, 5, 6],
}
)


def load_data(number_of_points=150):
Expand All @@ -34,7 +36,7 @@ def load_data(number_of_points=150):
),
vm.Graph(
figure=px.scatter(data_frame=static_df, x="sepal_width", y="sepal_length", color="species"),
)
),
],
controls=[
vm.Filter(column="species", selector=vm.RadioItems()),
Expand All @@ -46,9 +48,9 @@ def load_data(number_of_points=150):
value=150,
title="Number of points",
step=10,
)
),
),
]
],
)

dashboard = vm.Dashboard(pages=[page_1])
Expand Down
3 changes: 1 addition & 2 deletions vizro-core/src/vizro/models/_controls/parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ def _set_actions(self):
page_dynamic_filters = [
filter
for filter in cast(
Iterable[Filter],
model_manager._get_models(Filter, page=model_manager._get_model_page(self))
Iterable[Filter], model_manager._get_models(Filter, page=model_manager._get_model_page(self))
)
if filter._dynamic
]
Expand Down

0 comments on commit b43049f

Please sign in to comment.