Offline mode does not displaying figures

Dear All,

I am trying to use plotly (iplot) to create figures offline. Unfortunately, I could not get offline plots to display, instead I get the external temporary file. For example, when I run this script,

from plotly import version
from plotly.offline import download_plotlyjs, init_notebook_mode, plot, iplot
print version
init_notebook_mode(connected=True)
iplot([{β€œx”: [1, 2, 3], β€œy”: [3, 1, 6]}])

I am only getting this output.
1.12.12
<IPython.core.display.HTML object>
<IPython.core.display.HTML object>

How can I resolve this problem?

Best

Hi gkirlik, what are you running your script with?

I just copy pasted your code in an IPython notebook, works perfectly (though my Plot.ly version is higher…)

1 Like