Pythonshell in node-red and Plotly

I am trying to generate plotly charts from node red by running python script from python-shell. The python script runs fine in the shell, the print (text) out is seen in the debug node, however the offline or online plotly plots are not generated. Python script outside of the nodered shell works fine. How do I channel the plotly generated html from python shell to browser window or dashboard?