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.

Import seaborn as ??

See original GitHub issue

Not an issue, just a question from an enthusiastic user. You seem to like

import seaborn as sns

as your import style. When you type that, what is the voice in your head saying out loud? I had generally been importing as sbn since it “sounded right”.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:6
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

7reactions
twieckicommented, Jun 30, 2014

While I think that this is funny I think this should be mentioned somewhere. For code readability, module abbreviations should be consistent and I think people would more readily use sns if they knew why 😃.

6reactions
8one6commented, Jun 30, 2014

All kidding aside, I think that’s a very reasonable point. I suppose I prefer sbn since it doesn’t require people to “get the joke” even if the joke is documented. But I’m a team player, so I will probably just confirm my code to whatever consensus seems to be.

Read more comments on GitHub >

github_iconTop Results From Across the Web

An introduction to seaborn — seaborn 0.12.1 documentation
Let's go through them one by one: # Import seaborn import seaborn as sns. Seaborn is the only library we need to import...
Read more >
Seaborn - W3Schools
Visualize Distributions With Seaborn​​ Seaborn is a library that uses Matplotlib underneath to plot graphs. It will be used to visualize random distributions....
Read more >
Better Plotting in Python with Seaborn - Hooked on Data
To get started with seaborn, you're going to need to install it in the terminal with either pip install seaborn or conda install...
Read more >
python - Seaborn - Why import as sns? - Stack Overflow
Samuel Norman "Sam" Seaborn is a fictional character portrayed by Rob Lowe on the television serial drama The West Wing. So, it's a...
Read more >
seaborn - PyPI
pip install seaborn[stats]. Seaborn can also be installed with conda: conda install seaborn. Note that the main anaconda repository lags PyPI in adding...
Read more >

github_iconTop Related Medium Post

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