Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: ability to change defaults #94

Open
spinus opened this issue Dec 12, 2023 · 1 comment
Open

Feature: ability to change defaults #94

spinus opened this issue Dec 12, 2023 · 1 comment

Comments

@spinus
Copy link

spinus commented Dec 12, 2023

I would like to have "backend" and "frontend" set for all widgets. Would be nice to set it up once for as default for all.
Currently I think it is only possible to change each widget/instance separately.

@Wirg
Copy link
Owner

Wirg commented Jan 11, 2024

Hi @spinus.

Sorry for the long wait and the lack of response during the holiday period. :/
I have been working on that in the past weeks.
It should be here in the next version.
Would you be interested in testing some sort of prerelease to give me some feedback?

I still need to work on the documentation and testing but next version should add:

Default config

stqdm.set_default_config(frontend=True) # but it should work with any stqdm or tqdm kwargs

Config scopes

with stqdm.scope(bar_format="{bar}{desc}"):
   # my code using stqdm

Moreover, I am looking for feedback on the way it works:

  • does it feel good?
  • does autocompletion / typing works?
  • would it be better to use a config dict instead of **kwargs?

I would appreciate your help if you would like to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants