When running in jupyter, it seems that the server exports the number of columns as an inheritable env vars and not a shell variable. This, in turn, causes tqdm to pick up that width (simultaneously redirecting output and removing the variable causes fallback on the short width). In between the extra prefixes we add and the fact we may want to log or display in a dashboard, this often ends up being way too large.
Conversely maybe the default is too short when running from a normal terminal.
In either case, consider whether we should export COLUMNS to a reasonable number ourselves.
When running in jupyter, it seems that the server exports the number of columns as an inheritable env vars and not a shell variable. This, in turn, causes tqdm to pick up that width (simultaneously redirecting output and removing the variable causes fallback on the short width). In between the extra prefixes we add and the fact we may want to log or display in a dashboard, this often ends up being way too large.
Conversely maybe the default is too short when running from a normal terminal.
In either case, consider whether we should export COLUMNS to a reasonable number ourselves.