AttributeError: module 'plotly_express' has no attribute 'imshow'
See original GitHub issueReproduce with:
import plotly.express as px
fig_rows = []
fig = px.imshow(fig_rows)
fig.show()
Will give:
Traceback (most recent call last):
File "/Users/felix/IdeaProjects/cope/ann4class/workwithaestore.py", line 66, in <module>
investigate_distribution(dataset_ids=set([ALLSIDES_DATASET_ID]))
File "/Users/felix/IdeaProjects/cope/ann4class/workwithaestore.py", line 54, in investigate_distribution
fig = px.imshow(fig_rows)
AttributeError: module 'plotly_express' has no attribute 'imshow'
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
python - AttributeError: module 'plotly' has no attribute 'plotly'
Curiously, I am not able to make it work again. It says « AttributeError: module 'plotly' has no attribute 'plotly' ». Any tips...
Read more >How is there no attribute "pie" - Plotly Community Forum
import plotly.express as px h_town = nba[(nba['Tm']=='HOU')] fig ... AttributeError: module 'plotly.express' has no attribute 'pie'.
Read more >plotly.express package — 5.11.0 documentation
Objects of this class can be passed to Plotly Express functions that expect column identifiers or list-like objects to indicate that this attribute...
Read more >python-plotly-4.7.1-bp152.1.1 - SUSE Package Hub -
- update to version 4.7.1: * Fixed + Fix AttributeError: module 'plotly.graph_objs' has no attribute 'FigureWidget' exception on from plotly.graph_objs import * ...
Read more >module 'plotly.express.data' has no attribute-pandas
Coding example for the question Plotly: Error with pandas dataframe: module 'plotly.express.data' has no attribute-pandas.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For those who stumble here: If using Jupyter Notebooks… after you install a module such as plotly, you must restart the Jupyter kernel before the install will take effect. I received this error, installed plotly, but error persisted until restarting the kernel. HTH!
Also worked with me, thanks @SeaDude