Fail to generate Interactive Plot on Jupyter Notebook

132 Views Asked by At

I am trying to generate Interactive Plot on Jupyter Notebook with Plotly and Cufflinks. But when I run the code, there is an empty space for the figure but no actual plot. Please see the code below.

Any input would be greatly appreciated. Thanks.

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import cufflinks as cf
import plotly
import plotly.offline as plyo
%matplotlib inline
plt.ion()


a=np.random.standard_normal((250,5)).cumsum(axis=0)
index=pd.date_range('2019-1-1', freq='B', periods=len(a))
df=pd.DataFrame(100+5*a, columns=list('abcde'), index=index)
plyo.iplot(df.iplot(asFigure=True), image='png',filename='ply_01')

0

There are 0 best solutions below