Skip to content

DOC: Add pre-commit hook to strip tqdm progress bars from notebooks#1581

Merged
rlundeen2 merged 2 commits intomicrosoft:mainfrom
rlundeen2:users/rlundeen/2026_04_09_strip_tqdm
Apr 9, 2026
Merged

DOC: Add pre-commit hook to strip tqdm progress bars from notebooks#1581
rlundeen2 merged 2 commits intomicrosoft:mainfrom
rlundeen2:users/rlundeen/2026_04_09_strip_tqdm

Conversation

@rlundeen2
Copy link
Copy Markdown
Contributor

Create build_scripts/strip_notebook_progress_bars.py that removes tqdm progress bar outputs from notebook stderr streams. Detects patterns like %|, ━, █, and Unicode block characters. Removes entire stderr outputs when all lines are tqdm; strips individual lines otherwise.

Add strip-notebook-progress-bars hook to .pre-commit-config.yaml alongside existing sanitize-notebook-paths hook.

Strip 117 tqdm outputs from 14 affected notebooks (929 lines removed)

rlundeen2 and others added 2 commits April 9, 2026 12:31
Create build_scripts/strip_notebook_progress_bars.py that removes tqdm
progress bar outputs from notebook stderr streams. Detects patterns like
%|, ━, █, and Unicode block characters. Removes entire stderr outputs
when all lines are tqdm; strips individual lines otherwise.

Add strip-notebook-progress-bars hook to .pre-commit-config.yaml
alongside existing sanitize-notebook-paths hook.

Strip 117 tqdm outputs from 14 affected notebooks (929 lines removed).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@rlundeen2 rlundeen2 merged commit b9f4e47 into microsoft:main Apr 9, 2026
35 of 38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants