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 Request: use set_config to make lo default to verbose #18

Open
alexstoken opened this issue Dec 27, 2024 · 1 comment
Open

Feature Request: use set_config to make lo default to verbose #18

alexstoken opened this issue Dec 27, 2024 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@alexstoken
Copy link

Hi,

Thanks for the great work on this project, its very helpful!

I've found it is often still useful to maintain the verbose output for all prints, but this is currently not configurable and requires lo(..., verbose=True) to be repeated frequently.

A workaround I've been using is

from lovely_numpy import lo, set_config
from functools import partial
lo = partial(lo, verbose=True)

but it's not quite as elegant as something like toggling set_config(verbose=True).

Any chance this could be included in the config in the future?

@xl0
Copy link
Owner

xl0 commented Dec 29, 2024

Heya. Sounds reasonable. Can't promise I'll do it this year, but I don't mind this feature.

@xl0 xl0 added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants