lovely-numpy icon indicating copy to clipboard operation
lovely-numpy copied to clipboard

Feature Request: use `set_config` to make `lo` default to verbose

Open alexstoken opened this issue 1 year ago • 1 comments

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?

alexstoken avatar Dec 27 '24 17:12 alexstoken

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

xl0 avatar Dec 29 '24 00:12 xl0

@alexstoken It took a while, but I added the feature. You can try with git, or wait a bit for a release - I'll touch up a couple more things.

xl0 avatar Jun 09 '25 00:06 xl0