Add support for disable_progress_bar on Windows
COLLABORATOR
The CI failure seems unrelated to this PR (probably has something to do with Transformers).
2021-07-21T17:01:56Z
https://github.com/huggingface/datasets/pull/2696#issuecomment-884345305
https://api.github.com/repos/huggingface/datasets/issues/2696
IC_kwDODunzps40tgnZ
https://api.github.com/repos/huggingface/datasets/issues/comments/884345305/reactions
2021-07-21T17:01:56Z
https://api.github.com/repos/huggingface/datasets/issues/comments/884345305
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
This PR is a continuation of #2667 and adds support for `utils.disable_progress_bar()` on Windows when using multiprocessing. This [answer](https://stackoverflow.com/a/6596695/14095927) on SO explains it nicely why the current approach (with calling `utils.is_progress_bar_enabled()` inside `Dataset._map_single`) would not work on Windows.