Python view node does not display image output

Hi everybody, I am trying to replicate in knime a python script that found in a blog (see the link

When I run the node it stops at the 30% and a Ipython window pop ups showing the plot (see image), then I close that window and the node executes to the 100% and then I try to see the plot from the Knime node by right clicking the options in the node and I just see a blank window. 

I am attaching the node, any help is highly appreciated. 

Best Regards




you need to remove the line



Thank you now I can see the plot on the Python node.