In the basic example.
it shows Scattermapbox is not defined. Please help me on that
import plotly.plotly as py
from plotly.graph_objs import *
mapbox_access_token = ‘pk.eyJ1IjoiY2hlbHNlYXBsb3RseSIsImEiOiJjaXFqeXVzdDkwMHFrZnRtOGtlMGtwcGs4In0.SLidkdBMEap9POJGIe1eGw’
data = Data([
Scattermapbox(
lat=[‘45.5017’],
lon=[’-73.5673’],
mode=‘markers’,
marker=Marker(
size=14
),
text=[‘Montreal’],
)
])
layout = Layout(
autosize=True,
hovermode=‘closest’,
mapbox=dict(
accesstoken=mapbox_access_token,
bearing=0,
center=dict(
lat=45,
lon=-73
),
pitch=0,
zoom=5
),
)
fig = dict(data=data, layout=layout)
py.iplot(fig, filename=‘Montreal Mapbox’, validate=False)