Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/datasets/arrow_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -1798,7 +1798,8 @@ def load_from_disk(
tqdm_class=hf_tqdm,
desc="Loading dataset from disk",
# set `disable=None` rather than `disable=False` by default to disable progress bar when no TTY attached
disable=len(state["_data_files"]) <= 16 or None,
# unless TQDM_POSITION=-1 is set (cloud environments)
disable=len(state["_data_files"]) <= 16 or (None if os.getenv("TQDM_POSITION") != "-1" else False),
)
)

Expand Down
Loading