jupyter 上使用 import plotly.plotly as py import plotly.graph_objs as go py.sign_in('用户名', 'API Key') #https://plot.ly 网站上注册获得 trace = go.Bar(x=[1, 2], y =[1,2]) data = [trace] py.iplot(data)