Seaborn not working on Jupyter Notebook

I’m trying to import Seaborn on Jupyter Notebook, but facing the repeated issues.

  1. When i command
import Seaborn as sns

it replies as
ModuleNotFoundError: No module named 'Seaborn'

  1. Then I tried to install Seaborn manually by commanding ‘!pip install --user seaborn’, it replies as
    ‘Successfully installed seaborn-0.12.2
    WARNING: You are using pip version 21.1.3; however, version 23.0.1 is available.
    You should consider upgrading via the ‘/nix/store/nki9ywqzbvz68vr75kn2r7g1q84f5agy-python3-3.9.6/bin/python3.9 -m pip install --upgrade pip’ command.’

  2. After that I tried to import Seaborn again, but the same issues happened as point number 1.

  3. So I upgraded the version by commaindg ‘!pip install --user --upgraded pip’, but got the message :
    ‘Successfully installed pip-23.0.1
    WARNING: You are using pip version 21.1.3; however, version 23.0.1 is available.
    You should consider upgrading via the ‘/nix/store/nki9ywqzbvz68vr75kn2r7g1q84f5agy-python3-3.9.6/bin/python3.9 -m pip install --upgrade pip’ command.’

I’m stuck here, I can’t import Seaborn on Jupyter Notebook.

Just making sure you realize, python is case-sensitive. Module names are not usually capitalized, try import seaborn as sns.

Edit: I just checked the docs, yes the module name is lowercase.

1 Like

Yes, I tried with the lower case but showing the same error message as below.

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-2-a84c0541e888> in <module>
----> 1 import seaborn as sns

ModuleNotFoundError: No module named 'seaborn'

Hi,

I took a look and can confirm that you don’t seem to be able to use seaborn with the community-created Jupyter Notebook template, however you should be able to use this module with a Python template.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.