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: https://plot.ly/python/bubble-charts/
import plotly.plotly as py
import plotly.graph_objs as go
trace0 = go.Scatter(
x=[1, 2, 3, 4],
y=[10, 11, 12, 13],
mode='markers',
marker=dict(
size=[40, 60, 80, 100],
)
)
data = [trace0]
py.iplot(data, filename='bubblechart-size')
But it gives me the following error:
File “viz-plotly.py”, line 33, in
py.iplot(data, filename=‘bubblechart-color’)
File “C:\Anaconda2\lib\site-packages\plotly\plotly\plotly.py”, 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?