Hello, everyone :). Iâm trying to follow the tutorial to make for first time a Dashboard, from your site: RedirectingâŚ. Iâm working with jupyter notebnook and Python 2.7 in Ubuntu.
At âChoose PlotIâ:
import plotly.graph_objs as go
import plotly.plotly as pyimport numpy as np
colorscale = [[0, â#FAEE1Câ], [0.33, â#F3558Eâ], [0.66, â#9C1DE7â], [1, â#581B98â]]
trace1 = go.Scatter(
y = np.random.randn(500),
mode=âmarkersâ,
marker=dict(
size=â16â,
color = np.random.randn(500),
colorscale=colorscale,
showscale=True
)
)
data = [trace1]
url_1 = py.plot(data, filename=âscatter-for-dashboardâ, auto_open=False)
py.iplot(data, filename=âscatter-for-dashboardâ)I got the following error:
w, snap! We donât have an account for ââ. Want to try again? You can authenticate with your email address or username. Sign in is not case sensitive.
Donât have an account? plot.ly
Questions? support@plot.ly
IndexError Traceback (most recent call last)
in ()
17 data = [trace0, trace1, trace2, trace3]
18
â> 19 url_2 = py.plot(data, filename=âbox-plots-for-dashboardâ, sharing=âsecretâ, auto_open=False)
20 py.iplot(data, filename=âbox-plots-for-dashboardâ)/home/gatos/.local/lib/python2.7/site-packages/plotly/plotly/plotly.pyc in plot(figure_or_data, validate, **plot_options)
238 if âshare_key=â not in url:
239 # add_share_key_to_url updates the url to include the share_key
â 240 url = add_share_key_to_url(url)
241
242 if plot_options[âauto_openâ]:/home/gatos/.local/lib/python2.7/site-packages/plotly/plotly/plotly.pyc in add_share_key_to_url(plot_url, attempt)
1308 ââ"
1309 urlsplit = six.moves.urllib.parse.urlparse(plot_url)
â 1310 username = urlsplit.path.split(â/â)[1].split(â~â)[1]
1311 idlocal = urlsplit.path.split(â/â)[2]
1312 fid = â{}:{}â.format(username, idlocal)IndexError: list index out of range
I hope you can understand my problem. Thank you for reading me,
Regards