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

Reduce verbose / loudness when running a minimiser in a notebook #148

Closed
andreufont opened this issue Mar 12, 2021 · 3 comments
Closed

Reduce verbose / loudness when running a minimiser in a notebook #148

andreufont opened this issue Mar 12, 2021 · 3 comments

Comments

@andreufont
Copy link

Hi again - When I run the minimiser (default settings) in a Jupyter notebook, I get a fairly long list of output lines about the progress of the minimiser. In my tests, the minimiser takes a few seconds, but it is enough to really polute my nice, tidy notebooks :-)

It is possible to make the minimiser quiter? I tried looking at the documentation, but it wasn't trivial. I also tried guessing things like "silence=True", "debug=False", "verbose=False", but none of these wild guesses did the trick.

Thanks for the great work!

@andreufont
Copy link
Author

For BOBYQA, I'm guessing this could be done by specifying "print_progress=False" as a kwarg when we call "solve". Not sure about scipy.

@JesusTorrado
Copy link
Contributor

Should be fixed in the last commit. We were looking into to ways to solve this since we incorporated it (see numericalalgorithmsgroup/pybobyqa#10) but they were not using the logging module, so it wasn't possible until the last version they have published.

Now prints nothing unless debug: True (unfortunately they don't provide an intermediate level for reporting progress).

@andreufont
Copy link
Author

It works great, thanks!

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