Skip to content

How to use a newline in a progress bar? #921

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

You must be logged in to vote

You will need to extend the Progress class for this. If you yield your results column from get_renderables it will display them above the progress bar(s). Something like this:

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

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by FFY00
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
2 participants