在PyCharm IDE中嵌入Plotly HTML [英] Embed Plotly HTML in PyCharm IDE
本文介绍了在PyCharm IDE中嵌入Plotly HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想在PyCharm IDE中看到Plotly的HTML输出。它目前说:
I would like to see Plotly's HTML output in the PyCharm IDE. It currently says:
处理完成退出代码0
输出。但是,我在Jupyter中收到一个图形结果
for the output. However, I receive a graphical result in Jupyter
推荐答案
要查看Plotly html输出,请使用脱机功能。例如,像这样:
To see the Plotly html output use the offline feature. For example, like this:
plotly.offline.plot(*yourplotname*, filename='file.html')
在pycharm中运行代码,它会将.html文件保存在工作文件夹的本地文件中,并打开.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.
这篇关于在PyCharm IDE中嵌入Plotly HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文