情节并没有显示任何东西

时间:2017-12-06 19:18:05

标签: python python-2.7 plot plotly

刚从剧情中复制粘贴this示例。最后更改为py.plot并使用我的数据框数据运行。然而,python通常没有任何错误结束,并且屏幕上没有任何内容可以显示。

我到期了:

Aw, snap! We don't have an account for ''. Want to try again? You can authenticate with your email address or username. Sign in is not case sensitive.

Don't have an account? plot.ly
Questions? support@plot.ly

所以我尝试(没有运气)在顶部添加:

from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot

1 个答案:

答案 0 :(得分:0)

使用上面的@Maximilian答案:

import plotly
ploly.offline.init_notebook_mode()
plotly.offline.iplot(...)