Progressindicator in separate window

Hello Supporter,

I have a workflow with approximately 20 components. Each component runs a loop (Table Row To Variable Loop Start and Variable Loop End).

I would like to create a progress bar (similar to Windows Explorer Copy) in a window (not in the console), preferably with a function that receives the following parameters:

Component name
Free text as a message
Current iteration
Max iteration
Start time

The function should display a progress bar and output the following:

Component name
Free text as a message
Current iteration
Max iteration
Start time
Calculated end time (resulting from start time, current iteration, max iteration) in the format dd.mm.yyyy hh:mm:ss

Question:
Is it possible to create windows for output in Knime? So far, I’ve only found output in the console?
Can the the name of a component found in in a systemvariable?

Thanks for answer / ideas.

BR, Heinz

hi @Heinz, although this isn’t outputting to a window, it demonstrates how progress-bar style functionality can be achieved on a component within the workflow, utilising the Nodepit Node Annotator node (in the Nodepit Power Nodes extension)

For your actual request of having the progress bar in a separate window, my suggestions would be that you would possibly require “server” application to be running alongside KNIME that would receive rest api requests and draw the progress bar for you.

Such an application could be written in , say, java or python.

If you have python installed on your system (external to KNIME), take a look at this proof of concept. You will also need to install flask using
pip install flask

This is just a proof of concept where the “server” application receives the percentage amount, but it shows that it is at least achievable.

Some of the nodes here could be packaged into components to make the whole thing a little easier to maintain, but maybe you or somebody else on the forum could adapt the idea further.

This is the python-based progress bar popup in action in KNIME 5.5
popup-progress-bar

btw, the python code used here for this demo was created by chatGPT from my prompts, as I hadn’t used “flask” before this.

5 Likes

Thx for answer; I will work with above described solution.
Maybe my idea is worth to be set on wishlist for one of the next versions :)…

1 Like