Skip to content

dropdownmenus not working in version 1.12.5 while documentation claims it does. #542

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
aravindhsampath opened this issue Aug 15, 2016 · 1 comment

Comments

@aravindhsampath
Copy link

Documentation for dropdown menus claims to be working 1.12.4+ [Source: https://plot.ly/python/dropdowns/]

But, I run

import plotly
plotly.version
'1.12.5'

Yet, I get :

PlotlyDictKeyError: 'updatemenus' is not allowed in 'layout'

Path To Error: ['updatemenus']

Valid attributes for 'layout' at path [] under parents []:

['orientation', 'paper_bgcolor', 'scene', 'height', 'radialaxis',
'titlefont', 'images', 'hovermode', 'font', 'boxmode', 'autosize',
'title', 'plot_bgcolor', 'dragmode', 'smith', 'width', 'bargap',
'xaxis', 'bargroupgap', 'hidesources', 'direction', 'hiddenlabelssrc',
'showlegend', 'separators', 'hiddenlabels', 'barmode', 'boxgap',
'angularaxis', 'geo', 'legend', 'yaxis', 'annotations', 'shapes',
'barnorm', 'ternary', 'boxgroupgap', 'margin']

Run <layout-object>.help('attribute') on any of the above.
'' is the object at []

Feature itself seems to have checked in to "1.16.0" [source: https://github.com/plotly/plotly.js/pull/770]

Documentation needs to be corrected?

P.S I'm running on a hosted Jupyter server that I don't have access to upgrade packages.

@cldougl
Copy link
Member

cldougl commented Aug 15, 2016

Hi there,
If you are using plotly offline you may run into that issue. The plotly.js version used with our offline python package was recently updated: https://github.com/plotly/plotly.py/blob/master/CHANGELOG.md#updated

I've updated the documentation accordingly: 12.6+, (though online will work with versions 12.4+)

@cldougl cldougl closed this as completed Aug 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants