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.

importerror: cannot import name 'qual_palettes'

See original GitHub issue

When I use Anaconda JupyterNotebook, I import this seaborn but there are something wrong with this ‘QUAL_PALETTES’, I tried install palettes but it still doesn’t work. There was little solution when I googled.

ImportError                               Traceback (most recent call last)
<ipython-input-108-c7666d0a9133> in <module>()
     46 from sklearn.linear_model import LassoCV
     47 
---> 48 import seaborn as sns
     49 
     50 import mglearn

D:\anaconda\envs\tensorflow\lib\site-packages\seaborn\__init__.py in <module>()
      3 from .utils import *  # noqa: F401,F403
      4 from .palettes import *  # noqa: F401,F403
----> 5 from .relational import *  # noqa: F401,F403
      6 from .regression import *  # noqa: F401,F403
      7 from .categorical import *  # noqa: F401,F403

D:\anaconda\envs\tensorflow\lib\site-packages\seaborn\relational.py in <module>()
      6 import matplotlib.pyplot as plt
      7 
----> 8 from ._core import (
      9     VectorPlotter,
     10 )

D:\anaconda\envs\tensorflow\lib\site-packages\seaborn\_core.py in <module>()
     15     share_init_params_with_map,
     16 )
---> 17 from .palettes import (
     18     QUAL_PALETTES,
     19     color_palette,

ImportError: cannot import name 'QUAL_PALETTES'

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
wjrforcybercommented, Mar 25, 2021

Did you restart your kernel?

Thanks! After I restart the kernal it works fine now!

0reactions
mwaskomcommented, Mar 24, 2021

Did you restart your kernel?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: cannot import name 'QUAL_PALETTES' · Issue ...
I think this error doesn't come from FinRL. QUAL_PALETTES is a module inside seaborn. This error could occur due to your unsuccessful ...
Read more >
How to Fix ImportError: Cannot Import Name in Python - Rollbar
The Python ImportError: cannot import name error occurs when an imported class is not accessible or is in a circular dependency.
Read more >
ImportError when attempting to use Seaborn - Stack Overflow
Get the error below when trying to use Seaborn within Juptyer Notebook ... 19 color_palette, ImportError: cannot import name 'QUAL_PALETTES'.
Read more >
How to Fix : “ImportError: Cannot import name X” in Python
In Python "ImportError: cannot import name" error generally occurs when the imported class is not accessible, or the imported class is in a...
Read more >
How to Fix : “ImportError: Cannot import name X” in Python?
You can solve the “ ImportError : Cannot import name X” Error by resolving the circular dependencies. You can do that either by...
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