Catch warnings and print to console
Checklist
-
documentation is changed or added in./docs
-
unit tests updated to test changes
Description
Context
Warnings (such as use of experimental plugins) are currently printed above the rich live display while running hopctl
.
Intent
Replace the warnings.showwarning
function (as prescribed in the docs) with a callable that catches the warning and forwards it to the HopprLayout.print
method.