[Python] Redirect print and/or logging to Panel

Discussão em 'Python' iniciado por Stack, Dezembro 9, 2024.

  1. Stack

    Stack Membro Participativo

    I have made a small application that uses a Rich to show a Live view in several Panels.
    Is there a way to put standard (or rich) print statements into a particular panel?
    Being able to show logging output in its own dedicated panel would also work.

    I feel like this would be a very common use case but I haven't found any documentation. I think the answer could be in using the Console.capture() method but I can't figure it out.

    Continue reading...

Compartilhe esta Página