How to create live page of rows in panel #1720
Unanswered
GlenNicholls
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I am using python to run FPGA builds, using
subprocess
to run the FPGA build software. These builds can take multiple hours to complete. I decided to userich
's multiple progress bars to display the current build step and the overall progress. I also put a single-line, progress bar with only aTextColumn
in the panel. This is cleaned up the 100k+ lines of mostly debug info from running the FPGA tool which is nice because it doesn't mask important warnings or errors in my python code. The panel is used to show the user what's coming out from the subprocess pipe, essentially a terminal view to see that things are still running properly and also provide some insight about where it's at in each step of the build process.Reference how this looks:
However, I am not quite satisfied with the "terminal view" in the "Running Vivado" panel. One thing I would like to do is have it display more lines that would eventually scroll out of view, similar to what
python -m rich.live
does, but in a panel instead of a table. I have avoided using a table because as I mentioned, there are 100k+ lines of information that will be displayed and I'm not sure if thetable.add_row()
method would eventually run into memory issues. I thought about adding more progress instances withTextColumn
, but it seems ugly to keep track of lines and propagate them "upwards" row-wise. Anyways, is there a way to accomplish this to look similar to what I have but display more output in the panel?EDIT: Here is how my code currently looks:
Beta Was this translation helpful? Give feedback.
All reactions