# Live feedback with python scripting

**URL:** <https://forum.knime.com/t/live-feedback-with-python-scripting/18895>\
**Category:** KNIME Extensions\
**Tags:** scripting\
**Created:** [October 17, 2019, 10:45am UTC](https://forum.knime.com/t/live-feedback-with-python-scripting/18895 "2019-10-17T10:45:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![l.thomas](https://forum-cdn.knime.com/user_avatar/forum.knime.com/l.thomas/32/355_2.png) [@l.thomas](https://forum.knime.com/u/l.thomas)\
**Post date:** [October 17, 2019, 10:45am UTC](https://forum.knime.com/t/live-feedback-with-python-scripting/18895/1 "2019-10-17T10:45:10Z")

</div>

Hi,  
I was wondering since there are tools like tensorboard to monitor machine learning training in the browser.  
Would it be possible with the python nodes to have any generic feedback (print statement…) similarly forwarded to the browser or to some external tool ?  
Currently there is know way to get some idea of the advancement, so such workaround could be a solution.

---

<div class="post-metadata">

**Author:** ![christian.birkhold](https://forum-cdn.knime.com/user_avatar/forum.knime.com/christian.birkhold/32/346_2.png) [@christian.birkhold](https://forum.knime.com/u/christian.birkhold)\
**Post date:** [October 21, 2019, 9:16am UTC](https://forum.knime.com/t/live-feedback-with-python-scripting/18895/2 "2019-10-21T09:16:51Z")

</div>

Hi @l.thomas,

For the “Keras Network Learner” you can already monitor the progress of the training process. Not yet in the web, though.

Cheers,

Christian

---

<div class="post-metadata">

**Author:** ![l.thomas](https://forum-cdn.knime.com/user_avatar/forum.knime.com/l.thomas/32/355_2.png) [@l.thomas](https://forum.knime.com/u/l.thomas)\
**Post date:** [October 22, 2019, 10:13am UTC](https://forum.knime.com/t/live-feedback-with-python-scripting/18895/3 "2019-10-22T10:13:51Z")

</div>

Hi @christian.dietz  
I know about this one, but I was thinking for generic python node that would be great too !

I tried to redirect my print statement to knime.log, I can see my statements in the file but they are not displayed in the console panel of KNIME.  
Do you think I could find a way there ?

The python code :

```python
log = r"C:\Users\Laurent\knime-workspace\.metadata\knime\knime.log"

with open(log, "a") as f:
    print("2019-10-22 12:07:01,956 : WARN : KNIME-Worker-14 : : Node : Python Source : 0:6 : Hello KNIME!", file=f)

# Create am empty datatable to prevent execution error
import pandas as pd
output_table = pd.DataFrame()

```

---

<div class="post-metadata">

**Author:** ![nemad](https://forum-cdn.knime.com/user_avatar/forum.knime.com/nemad/32/53702_2.png) [@nemad](https://forum.knime.com/u/nemad)\
**Post date:** [October 22, 2019, 11:14am UTC](https://forum.knime.com/t/live-feedback-with-python-scripting/18895/4 "2019-10-22T11:14:22Z")

</div>

Hello @l.thomas,

you can display the standard output of Python in the console panel by setting the “Console View Log Level” to INFO (File-\>Preferences-\>KNIME-\>KNIME GUI).

Cheers,

Adrian

---

<div class="post-metadata">

**Author:** ![l.thomas](https://forum-cdn.knime.com/user_avatar/forum.knime.com/l.thomas/32/355_2.png) [@l.thomas](https://forum.knime.com/u/l.thomas)\
**Post date:** [October 22, 2019, 11:56am UTC](https://forum.knime.com/t/live-feedback-with-python-scripting/18895/5 "2019-10-22T11:56:42Z")

</div>

AMAZING !!! 🥳

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [October 29, 2019, 11:56am UTC](https://forum.knime.com/t/live-feedback-with-python-scripting/18895/6 "2019-10-29T11:56:48Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
