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

Verbosity not working in Notebooks #105

Closed
matteoettam09 opened this issue Sep 21, 2022 · 2 comments
Closed

Verbosity not working in Notebooks #105

matteoettam09 opened this issue Sep 21, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@matteoettam09
Copy link

Describe the bug

Setting verbosity to the algo doesn't not lead to print the convergence. I am working in Notebooks, not sure if that is the cause of it.

To Reproduce

Running the first optimizer in the docs here on a different fitness function. Adding print(something) inside the class prints, but algo.set_verbosity(1) doesn't do anything.

Expected behavior

Would be nice to be able to print.

Environment (please complete the following information):

  • OS: Linux
  • Installation method: conda
  • Version: 2.18.0
@matteoettam09 matteoettam09 added the bug Something isn't working label Sep 21, 2022
@bluescarni
Copy link
Member

@matteoettam09 this is the expected behaviour, as the algorithms' screen output happens at the C++ level. I.e., you should see the screen output appearing in the console from which you started jupyter.

There's no easy solution for this issue. I think at one point the jupyter developers added automatic redirection of console output into the notebook GUI, but in my experience that can lead to deadlocks and I would thus warn against making use of this feature.

@matteoettam09
Copy link
Author

Right, like GODOT! Makes sense, thank you.

Thanks for the quick feedback!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants