Progress bars have color red and never completed to 100%
{'login': 'echatzikyriakidis', 'id': 63857529, 'node_id': 'MDQ6VXNlcjYzODU3NTI5', 'avatar_url': 'https://avatars.githubusercontent.com/u/63857529?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/echatzikyriakidis', 'html_url': 'https://github.com/echatzikyriakidis', 'followers_url': 'https://api.github.com/users/echatzikyriakidis/followers', 'following_url': 'https://api.github.com/users/echatzikyriakidis/following{/other_user}', 'gists_url': 'https://api.github.com/users/echatzikyriakidis/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/echatzikyriakidis/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/echatzikyriakidis/subscriptions', 'organizations_url': 'https://api.github.com/users/echatzikyriakidis/orgs', 'repos_url': 'https://api.github.com/users/echatzikyriakidis/repos', 'events_url': 'https://api.github.com/users/echatzikyriakidis/events{/privacy}', 'received_events_url': 'https://api.github.com/users/echatzikyriakidis/received_events', 'type': 'User', 'site_admin': False}
[{'id': 1935892857, 'node_id': 'MDU6TGFiZWwxOTM1ODkyODU3', 'url': 'https://api.github.com/repos/huggingface/datasets/labels/bug', 'name': 'bug', 'color': 'd73a4a', 'default': True, 'description': "Something isn't working"}]
{'login': 'david1542', 'id': 9879252, 'node_id': 'MDQ6VXNlcjk4NzkyNTI=', 'avatar_url': 'https://avatars.githubusercontent.com/u/9879252?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/david1542', 'html_url': 'https://github.com/david1542', 'followers_url': 'https://api.github.com/users/david1542/followers', 'following_url': 'https://api.github.com/users/david1542/following{/other_user}', 'gists_url': 'https://api.github.com/users/david1542/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/david1542/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/david1542/subscriptions', 'organizations_url': 'https://api.github.com/users/david1542/orgs', 'repos_url': 'https://api.github.com/users/david1542/repos', 'events_url': 'https://api.github.com/users/david1542/events{/privacy}', 'received_events_url': 'https://api.github.com/users/david1542/received_events', 'type': 'User', 'site_admin': False}
[{'login': 'david1542', 'id': 9879252, 'node_id': 'MDQ6VXNlcjk4NzkyNTI=', 'avatar_url': 'https://avatars.githubusercontent.com/u/9879252?v=4', 'gravatar_id': '', 'url': 'https://api.github.com/users/david1542', 'html_url': 'https://github.com/david1542', 'followers_url': 'https://api.github.com/users/david1542/followers', 'following_url': 'https://api.github.com/users/david1542/following{/other_user}', 'gists_url': 'https://api.github.com/users/david1542/gists{/gist_id}', 'starred_url': 'https://api.github.com/users/david1542/starred{/owner}{/repo}', 'subscriptions_url': 'https://api.github.com/users/david1542/subscriptions', 'organizations_url': 'https://api.github.com/users/david1542/orgs', 'repos_url': 'https://api.github.com/users/david1542/repos', 'events_url': 'https://api.github.com/users/david1542/events{/privacy}', 'received_events_url': 'https://api.github.com/users/david1542/received_events', 'type': 'User', 'site_admin': False}]
Hi @echatzikyriakidis, thanks for submitting the issue.
Which shell are you using exactly? I tried to run the command you sent, but I don't see colors at all 🧐

I tried from bash and zsh as well. Hi @david1542 ,

I use Google Colab.
 Got it. I [created a PR](https://github.com/huggingface/datasets/pull/5120) that fixes this issue. Turns out that the wrapping logic for the inner loop was slightly incorrect. Thank you!
## Describe the bug
Progress bars after transformative operations turn in red and never be completed to 100%

## Steps to reproduce the bug
```python
from datasets import load_dataset

load_dataset('rotten_tomatoes', split='test').filter(lambda o: True)
```

## Expected results
Progress bar should be 100% and green

## Actual results
Progress  bar turn in red and never completed to 100%

## Environment info
- `datasets` version: 2.6.1
- Platform: Linux-5.10.133+-x86_64-with-Ubuntu-18.04-bionic
- Python version: 3.7.14
- PyArrow version: 6.0.1
- Pandas version: 1.3.5
{'url': 'https://api.github.com/repos/huggingface/datasets/issues/5117/reactions', 'total_count': 0, '+1': 0, '-1': 0, 'laugh': 0, 'hooray': 0, 'confused': 0, 'heart': 0, 'rocket': 0, 'eyes': 0}