question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AttributeError: module 'plotly_express' has no attribute 'imshow'

See original GitHub issue

Reproduce 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:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
SeaDudecommented, Dec 27, 2020

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!

1reaction
omar1890commented, Jan 15, 2022

Also worked with me, thanks @SeaDude

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found