We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Not able to turn off progress bars
1 parent 3b07d63 commit 87e0e61Copy full SHA for 87e0e61
pandarallel/progress_bars.py
@@ -55,6 +55,7 @@ def is_notebook_lab() -> bool:
55
56
class ProgressBarsConsole(ProgressBars):
57
def __init__(self, maxs: List[int], show: bool) -> None:
58
+ self.__show = show
59
self.__bars = [[0, max] for max in maxs]
60
self.__width = self.__get_width()
61
@@ -103,6 +104,9 @@ def update(self, values: List[int]) -> None:
103
104
Positional arguments:
105
values - The new values of each bar
106
"""
107
+ if not self.__show:
108
+ return
109
+
110
for index, value in enumerate(values):
111
self.__bars[index][0] = value
112
0 commit comments