# Pythonshell in node-red and Plotly

**URL:** <https://discourse.nodered.org/t/pythonshell-in-node-red-and-plotly/16443>\
**Category:** Dashboard\
**Created:** [7 October 2019 22:33 UTC](https://discourse.nodered.org/t/pythonshell-in-node-red-and-plotly/16443 "2019-10-07T22:33:11Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aliadalal](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aliadalal/32/8066_2.png) [@aliadalal](https://discourse.nodered.org/u/aliadalal)\
**Post date:** [7 October 2019 22:33 UTC](https://discourse.nodered.org/t/pythonshell-in-node-red-and-plotly/16443/1 "2019-10-07T22:33:11Z")

</div>

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?  
Thanks

---

<div class="post-metadata">

**Author:** ![miker256](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/miker256/32/13042_2.png) [@miker256](https://discourse.nodered.org/u/miker256)\
**Post date:** [12 October 2019 17:55 UTC](https://discourse.nodered.org/t/pythonshell-in-node-red-and-plotly/16443/2 "2019-10-12T17:55:35Z")

</div>

> <https://stackoverflow.com/questions/36262748/python-save-plotly-plot-to-local-file-and-insert-into-html>

> <https://stackoverflow.com/questions/37683147/getting-script-and-div-tags-from-plotly-using-python>
