Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

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