Is there a way to redirect jupyter cell output to an widget?

I am wondering how do I put jupyter output message like error and ml training logs to a widget(text area input or terminal widgets). Seem its not easy to capture the ouput.

Hey, I guess this is what you’re looking for Terminal — Panel 0.12.6 documentation
It’s dynamic kind of widget which you can serve into browser… !

Yes, It is . Thank you!