You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
documentation request (i.e. "X is missing from the documentation." If instead I want to ask "how to use X?" I understand StackOverflow#tqdm is more appropriate)
I have searched through the issue tracker for duplicates
I have mentioned version numbers, operating system and
environment, where applicable: 4.66.2 3.10.2 | packaged by conda-forge | (main, Mar 8 2022, 15:53:57) [GCC 9.4.0] linux
Hi!
I've been using tqdm lately along with the set_postfix function. I noticed that in the documentation it says that you can provide not only a dict but also an OrderedDict. The OrderedDict works as expected, but the option postfix in the tqdm class does not work as expected if you provide an OrderedDict (i.e., the order is different from execution to execution, I guess that due to the PYTHONHASHSEED envvar or similar which helps to initialize the dictionaries order). In the documentation we can see that postfix: dict or *, optional, so the documentation is correct (i.e., it doesn't mention OrderedDict). But since for the set_postfix we can see that in the documentation allows dict or OrderedDict, I think that it makes sense that the postfix option of the tqdm class would also accept an OrderedDict to preserve the order of the parameters. I guess that the change shouldn't be too difficult since currently when postfix is provided in the tqdm class, it "calls set_postfix(**postfix)".
Thank you!
The text was updated successfully, but these errors were encountered:
read the known issues
environment, where applicable: 4.66.2 3.10.2 | packaged by conda-forge | (main, Mar 8 2022, 15:53:57) [GCC 9.4.0] linux
Hi!
I've been using
tqdm
lately along with theset_postfix
function. I noticed that in the documentation it says that you can provide not only adict
but also anOrderedDict
. TheOrderedDict
works as expected, but the optionpostfix
in thetqdm
class does not work as expected if you provide anOrderedDict
(i.e., the order is different from execution to execution, I guess that due to the PYTHONHASHSEED envvar or similar which helps to initialize the dictionaries order). In the documentation we can see thatpostfix: dict or *, optional
, so the documentation is correct (i.e., it doesn't mentionOrderedDict
). But since for theset_postfix
we can see that in the documentation allowsdict or OrderedDict
, I think that it makes sense that thepostfix
option of thetqdm
class would also accept anOrderedDict
to preserve the order of the parameters. I guess that the change shouldn't be too difficult since currently whenpostfix
is provided in thetqdm
class, it "callsset_postfix(**postfix)
".Thank you!
The text was updated successfully, but these errors were encountered: