huggingface_hub
c5c9cd26 - Fix `hf jobs` commands crashing without a TTY (#3782)

Commit
3 days ago
Fix `hf jobs` commands crashing without a TTY (#3782) Use `shutil.get_terminal_size()` instead of `os.get_terminal_size()` in `_tabulate` so that commands like `hf jobs hardware` and `hf jobs scheduled ps` gracefully fall back to a default terminal width when no TTY is attached (e.g. piped output, subprocesses). Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Author
Parents
Loading