plotly.py: Getting AttributeError: module 'plotly.validators.layout.mapbox.layer' has no attribute 'CoordinatesValidator'
I am using plotly 3.1 and am getting he below error:
AttributeError: module 'plotly.validators.layout.mapbox.layer' has no attribute 'CoordinatesValidator'
I read around tried with 3.4.2 and 4.1 versions - same error here is an example code i am using:
trace = go.Bar(
x=cnt_users.year_month,
y=cnt_users.num_users,
marker=dict(
colorscale = 'Picnic',
reversescale = True
),
)
layout = go.Layout(
title='Count of Unique Users per Month',
font=dict(size=16)
)
data = [trace]
fig = go.Figure(data=data, layout=layout)
fig['layout'].update(height=500, width=1500)
py.iplot(fig, filename="TargetCount")
This was working for me 4 months ago but now i am getting an error
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 22 (9 by maintainers)
I’ve just been able to replicate this with an open notebook after installing a different version of
plotly
while the kernel was running, and restarting the kernel resolved the issue, so this may be part of the solution for some folks.