Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Embed Plotly HTML in PyCharm IDE

I would like to see Plotly's HTML output in the PyCharm IDE. It currently says:

Process finished with exit code 0

for the output. However, I receive a graphical result in Jupyter

like image 998
Sterling Butters Avatar asked Sep 12 '16 10:09

Sterling Butters


1 Answers

To see the Plotly html output use the offline feature. For example, like this:

plotly.offline.plot(*yourplotname*, filename='file.html')

Run the code in pycharm and it will save the .html file locally in your work folder and open the .html in your browser to view.

like image 76
Kristian Vybiral Avatar answered Sep 29 '22 20:09

Kristian Vybiral