Cufflinks for plotly: setting cufflinks config options launches

前端 未结 5 1687
太阳男子
太阳男子 2021-01-05 06:02

I\'m trying to use cufflinks locally to generate plotly graphs from a pandas Dataframe

However, when I try and configure cufflinks in a python console,

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-05 06:27

    I think the issue is setting the filename argument in the iplot call.

    df.iplot(kind='bar', barmode='stack')

    http://nbviewer.jupyter.org/gist/santosjorge/5fdbe947496faf7af5e6

    Edit if it is possible to do this with plotly, you can pass your cufflinks-generated figure to plotly.plot:

    import cufflinks as cf
    import plotly as py
    fig = df.iplot(kind='bar', barmode='stack', asFigure=True)
    py.offline.plot(fig)
    

提交回复
热议问题