Index error with plotly example code

I am relatively new to python and plotly. I just installed plotly and am running python through Anaconda. I wanted to make a bubble plot so I’m trying to work through the example code on the plotly website:

import plotly.plotly as py
import plotly.graph_objs as go

trace0 = go.Scatter(
    x=[1, 2, 3, 4],
    y=[10, 11, 12, 13],
        size=[40, 60, 80, 100],

data = [trace0]
py.iplot(data, filename='bubblechart-size')

But it gives me the following error:

File “”, line 33, in
py.iplot(data, filename=‘bubblechart-color’)
File “C:\Anaconda2\lib\site-packages\plotly\plotly\”, line 109, in iplot
username, plot_id = urlsplit[-2][1:], urlsplit[-1] # TODO: HACKY!
IndexError: list index out of range

The package is newly installed, the code is straight from the website, I’m not sure why it’s not working?