Skip to content

Commit eb6703d

Browse files
authored
Merge pull request #55 from vaaaaanquish/issue_54
fix progress bar on cli
2 parents d434f72 + 6dad3ad commit eb6703d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pandarallel/pandarallel.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from pandarallel.data_types.series import Series as S
1717
from pandarallel.data_types.series_rolling import SeriesRolling as SR
1818
from pandarallel.utils.inliner import inline
19-
from pandarallel.utils.progress_bars import get_progress_bars
19+
from pandarallel.utils.progress_bars import get_progress_bars, is_notebook_lab
2020
from pandarallel.utils.tools import ERROR, INPUT_FILE_READ, PROGRESSION, VALUE
2121

2222
NB_WORKERS = cpu_count()
@@ -324,7 +324,8 @@ def get_workers_result(
324324
finished_workers[worker_index] = ERROR
325325

326326
if show_progress_bar:
327-
progress_bars.set_error(worker_index)
327+
if is_notebook_lab():
328+
progress_bars.set_error(worker_index)
328329
progress_bars.update(progresses)
329330

330331
results = map_result.get()

0 commit comments

Comments
 (0)