Skip to content

Live Table with Progress Bar #482

Answered by willmcgugan
nicofirst1 asked this question in Q&A
Discussion options

You must be logged in to vote

Glad you like Rich.

Live and Progress probably wouldn't work in combination, but I think you can achieve what you want by extending the Progress class. There is a get_renderables method on Progress which is currently the following:

    def get_renderables(self) -> Iterable[RenderableType]:
        """Get a number of renderables for the progress display."""
        table = self.make_tasks_table(self.tasks)
        yield table

If you extend that, you can yield a Columns object with your new table and the table returned from makes_tasks_table.

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by nicofirst1
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants