擅长:python、mysql、java
<p>我认为问题在于在<code>iplot</code>调用中设置filename参数。</p>
<p><code>df.iplot(kind='bar', barmode='stack')</code></p>
<p><a href="http://nbviewer.jupyter.org/gist/santosjorge/5fdbe947496faf7af5e6" rel="noreferrer">http://nbviewer.jupyter.org/gist/santosjorge/5fdbe947496faf7af5e6</a></p>
<p><strong>编辑</strong>如果可以对plotly执行此操作,则可以将袖扣生成的图形传递到plotly.plot:</p>
<pre><code>import cufflinks as cf
import plotly as py
fig = df.iplot(kind='bar', barmode='stack', asFigure=True)
py.offline.plot(fig)
</code></pre>