Skip to content

Commit 967d63f

Browse files
committed
Disable refresh animation in plots
1 parent 985f8fa commit 967d63f

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

gui/app.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import gradio as gr
2-
3-
from .data import test_equations
4-
from .plots import replot, replot_pareto
5-
from .processing import processing
2+
from data import test_equations
3+
from plots import replot, replot_pareto
4+
from processing import processing
65

76

87
def _data_layout():
@@ -234,13 +233,16 @@ def main():
234233
blocks["data_seed"],
235234
]
236235
for eqn_component in eqn_components:
237-
eqn_component.change(replot, eqn_components, blocks["example_plot"])
236+
eqn_component.change(
237+
replot, eqn_components, blocks["example_plot"], show_progress=False
238+
)
238239

239240
# Update plot when dataframe is updated:
240241
blocks["df"].change(
241242
replot_pareto,
242243
inputs=[blocks["df"], blocks["maxsize"]],
243244
outputs=[blocks["pareto"]],
245+
show_progress=False,
244246
)
245247
demo.load(replot, eqn_components, blocks["example_plot"])
246248

gui/plots.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"monospace",
1212
]
1313

14-
from .data import generate_data
14+
from data import generate_data
1515

1616

1717
def replot_pareto(df: pd.DataFrame, maxsize: int):

gui/processing.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66

77
import numpy as np
88
import pandas as pd
9-
10-
from .data import generate_data, read_csv
9+
from data import generate_data, read_csv
1110

1211
EMPTY_DF = lambda: pd.DataFrame(
1312
{

0 commit comments

Comments
 (0)