Check the version of seaborn & sns.lineplot()

1,541 views
Skip to first unread message

Xiaoyi Zhang

unread,
Oct 17, 2018, 1:19:08 AM10/17/18
to Project Jupyter
I wonder if we can write a command in jupyter notebook that checks the version of imported seaborn (seems that jupyter notebook is keeping the old version).

Moreover, how can we draw a line plot with seaborn in jupyter notebook? (I tried the sns.lineplot() function but an error was thrown: module 'seaborn' has no attribute 'lineplot')

Thanks!

Roland Weber

unread,
Oct 18, 2018, 1:29:53 AM10/18/18
to Project Jupyter
import seaborn
print(seaborn.__version__)

Jupyter Notebook is not responsible for the package versions in your kernel environment. You can install there whatever version of seaborn you want to use. If you want to upgrade, you'll also have to do that on your own. Depending on how you installed it in the first place, it's probably either pip or conda that can do the upgrade for you.

hope this helps,
  Roland
Reply all
Reply to author
Forward
0 new messages